diff options
author | Andrew White <andrew.white@unboxed.co> | 2017-03-07 10:16:49 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2017-03-07 10:20:21 +0000 |
commit | 9b84567fd438acf0e4a973e2be46dce3ba5c6ea0 (patch) | |
tree | 8d9877b06c9fbb2dd16cc009eb57137523959807 /actionpack/lib/action_dispatch/railtie.rb | |
parent | 7716b6ed229b4179720c5a1101260e815576824a (diff) | |
download | rails-9b84567fd438acf0e4a973e2be46dce3ba5c6ea0.tar.gz rails-9b84567fd438acf0e4a973e2be46dce3ba5c6ea0.tar.bz2 rails-9b84567fd438acf0e4a973e2be46dce3ba5c6ea0.zip |
Check whether `Rails.application` defined before calling it
In #27674 we changed the migration generator to generate migrations at
the path defined in `Rails.application.config.paths` however the code
checked for the presence of the `Rails` constant but not the
`Rails.application` method which caused problems when using Active
Record and generators outside of the context of a Rails application.
Fixes #28325.
Diffstat (limited to 'actionpack/lib/action_dispatch/railtie.rb')
0 files changed, 0 insertions, 0 deletions