instance method
load_deprecated_tasks
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
load_deprecated_tasks()
No documentation comment.
Source
# File railties/lib/rails/plugin.rb, line 47
def load_deprecated_tasks
tasks = Dir["#{root}/{tasks,rails/tasks}/**/*.rake"].sort
if tasks.any?
ActiveSupport::Deprecation.warn "Rake tasks in #{tasks.to_sentence} are deprecated. Use lib/tasks instead"
tasks.each { |ext| load(ext) }
end
end
Defined in railties/lib/rails/plugin.rb line 47
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Plugin