aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/core.rb
diff options
context:
space:
mode:
authorArthur Neves <arthurnn@gmail.com>2015-02-13 21:10:53 -0500
committerArthur Neves <arthurnn@gmail.com>2015-02-24 19:16:28 -0500
commit7d2a87281c7fc8ecfdf6ab7d6beedc49d166424b (patch)
tree06a27b66d511e99176c55ea40fb610bc423b1f5f /activerecord/lib/active_record/core.rb
parent4a1bb9d0ce985fd105f930078a733601b29ef8a4 (diff)
downloadrails-7d2a87281c7fc8ecfdf6ab7d6beedc49d166424b.tar.gz
rails-7d2a87281c7fc8ecfdf6ab7d6beedc49d166424b.tar.bz2
rails-7d2a87281c7fc8ecfdf6ab7d6beedc49d166424b.zip
Add before_commit
[fixes #18903]
Diffstat (limited to 'activerecord/lib/active_record/core.rb')
-rw-r--r--activerecord/lib/active_record/core.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index 44d587206d..a71f7a03ea 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -487,7 +487,7 @@ module ActiveRecord
end
def has_transactional_callbacks? # :nodoc:
- !_rollback_callbacks.empty? || !_commit_callbacks.empty?
+ !_rollback_callbacks.empty? || !_commit_callbacks.empty? || !_before_commit_callbacks.empty?
end
# Updates the attributes on this particular ActiveRecord object so that