mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 08:08:00 -05:00
Only set raise_in_transactional_callbacks for Rails 4.2
* Only set for active record orm. * Only set for Rails versions that supports the config.
This commit is contained in:
@@ -32,7 +32,9 @@ module RailsApp
|
||||
|
||||
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
|
||||
|
||||
config.active_record.raise_in_transactional_callbacks = true
|
||||
if DEVISE_ORM == :active_record && (Rails::VERSION::MAJOR >= 4 && Rails::VERSION::MINOR >= 2)
|
||||
config.active_record.raise_in_transactional_callbacks = true
|
||||
end
|
||||
|
||||
# This was used to break devise in some situations
|
||||
config.to_prepare do
|
||||
|
||||
Reference in New Issue
Block a user