diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-01-15 20:15:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-15 20:15:45 +0100 |
commit | f8a3981beb4221c230a2dc366db5fcc5e276f035 (patch) | |
tree | cb22b2e410896c7a212744916f9a541a9ac6f444 /railties/lib/rails/command/actions.rb | |
parent | 0bc8d0fb88101a7ea5f87df5f5b384746e3cf06e (diff) | |
parent | f5f834fb349c62efdb3db45b8ec392c9f70826f0 (diff) | |
download | rails-f8a3981beb4221c230a2dc366db5fcc5e276f035.tar.gz rails-f8a3981beb4221c230a2dc366db5fcc5e276f035.tar.bz2 rails-f8a3981beb4221c230a2dc366db5fcc5e276f035.zip |
Merge pull request #27601 from y-yagi/make_work_all_commands_from_engine
Make all rails commands work in engine
Diffstat (limited to 'railties/lib/rails/command/actions.rb')
-rw-r--r-- | railties/lib/rails/command/actions.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/rails/command/actions.rb b/railties/lib/rails/command/actions.rb index 31b656ec31..fb80e9d997 100644 --- a/railties/lib/rails/command/actions.rb +++ b/railties/lib/rails/command/actions.rb @@ -11,6 +11,11 @@ module Rails if defined?(ENGINE_PATH) def require_application_and_environment! require ENGINE_PATH + + if defined?(APP_PATH) + require APP_PATH + Rails.application.require_environment! + end end def load_tasks |