Commit b53cc938 by Cuong Tran

Merge pull request #296 from djsegal/djsegal/engines

Correctly find annotate_models task in an unmounted engine
parents 0fbfdc3d 01cd1115
...@@ -29,7 +29,13 @@ module Annotate ...@@ -29,7 +29,13 @@ module Annotate
def self.update_annotations def self.update_annotations
unless @@working || Annotate.skip_on_migration? unless @@working || Annotate.skip_on_migration?
@@working = true @@working = true
Rake::Task['annotate_models'].invoke if Rake::Task.task_defined?("annotate_models")
Rake::Task["annotate_models"].invoke
elsif Rake::Task.task_defined?("app:annotate_models")
Rake::Task["app:annotate_models"].invoke
else
raise "Don't know how to build task 'annotate_models'"
end
end end
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment