# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
Dummy::Application.load_tasks
Given the above when making an engine, this dummy application also loads the engines tasks located in /lib/tasks as well. How does it do this? I can't seem to find where load_tasks is defined or how it works..
Any advice would be great.
Rails.application.load_tasks
is defined in github.com/rails/rails/blob/master/railties/lib/rails/…