Permalink
Browse files

Remove deprecated `#raise_in_transactional_callbacks` configuration

  • Loading branch information...
rafaelfranca committed Dec 29, 2016
1 parent 419e06b commit 8029f779b8a1dd9848fee0b7967c2e0849bf6e07
Showing with 4 additions and 10 deletions.
  1. +4 −0 activerecord/CHANGELOG.md
  2. +0 −10 activerecord/lib/active_record/transactions.rb
@@ -1,3 +1,7 @@
* Remove deprecated `#raise_in_transactional_callbacks` configuration.
*Rafael Mendonça França*
* Remove deprecated `#load_schema_for`.
*Rafael Mendonça França*
@@ -274,16 +274,6 @@ def after_rollback_without_transaction_enrollment(*args, &block) # :nodoc:
set_callback(:rollback_without_transaction_enrollment, :after, *args, &block)
end
def raise_in_transactional_callbacks
ActiveSupport::Deprecation.warn("ActiveRecord::Base.raise_in_transactional_callbacks is deprecated and will be removed without replacement.")
true
end
def raise_in_transactional_callbacks=(value)
ActiveSupport::Deprecation.warn("ActiveRecord::Base.raise_in_transactional_callbacks= is deprecated, has no effect and will be removed without replacement.")
value
end
private
def set_options_for_callbacks!(args, enforced_options = {})

0 comments on commit 8029f77

Please sign in to comment.