Skip to content

Commit

Permalink
Remove deprecated #raise_in_transactional_callbacks configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Dec 29, 2016
1 parent 419e06b commit 8029f77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 4 additions & 0 deletions activerecord/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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*
Expand Down
10 changes: 0 additions & 10 deletions activerecord/lib/active_record/transactions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {})
Expand Down

0 comments on commit 8029f77

Please sign in to comment.