Skip to content

Commit

Permalink
Invoke app-prefixed active storage task when in engine
Browse files Browse the repository at this point in the history
  • Loading branch information
5t111111 committed Dec 13, 2017
1 parent 9b2180c commit 66a22de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion activestorage/lib/tasks/activestorage.rake
Expand Up @@ -3,6 +3,10 @@
namespace :active_storage do
desc "Copy over the migration needed to the application"
task install: :environment do
Rake::Task["active_storage:install:migrations"].invoke
if Rake::Task.task_defined?("active_storage:install:migrations")
Rake::Task["active_storage:install:migrations"].invoke
else
Rake::Task["app:active_storage:install:migrations"].invoke
end
end
end

0 comments on commit 66a22de

Please sign in to comment.