Closed kratob closed 7 years ago
See https://github.com/rails/rails/issues/23589 for the underlying issue and https://github.com/plataformatec/devise/commit/c2c74b0a39238e7d997486814a1c8f75fdaf276f for how Devise fixed it.
@henning-koch Does this look like a sensible solution to you?
OK, let's release it.
When active_type is used inside Rails it loads
ActiveRecord::Base
too early. This causes configuration settings set viaRails.application.config.active_record
(for exampleRails.application.config.belongs_to_required_by_default = true
) set in a Rails initializer (as is default in Rails 5) to be disregarded.In case
ActiveType
is used withoutRails
, we should load regularly.