Skip to content

Commit

Permalink
Using 'raise_in_transactional_callbacks' only in Rails 4.2
Browse files Browse the repository at this point in the history
It has been deprecated in Rails 5
  • Loading branch information
brenes committed Jun 7, 2016
1 parent 15fedec commit 82a8078
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/dummy/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

# Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr
config.active_record.raise_in_transactional_callbacks = true if Rails.version >= "4.2"
if Rails.version >= "4.2" && Rails.version < "5"
config.active_record.raise_in_transactional_callbacks = true
end

end

0 comments on commit 82a8078

Please sign in to comment.