class Rails::Engine

def load_tasks(app = self)

Check Rails::Railtie.rake_tasks for more info.
Load Rake and railties tasks, and invoke the registered hooks.
def load_tasks(app = self)
  require "rake"
  run_tasks_blocks(app)
  self
end