1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/rails
Andrew White 9b84567fd4 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.
2017-03-07 10:20:21 +00:00
..
generators Check whether Rails.application defined before calling it 2017-03-07 10:20:21 +00:00