diff options
author | Arthur Neves <arthurnn@gmail.com> | 2015-02-13 21:10:53 -0500 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2015-02-24 19:16:28 -0500 |
commit | 7d2a87281c7fc8ecfdf6ab7d6beedc49d166424b (patch) | |
tree | 06a27b66d511e99176c55ea40fb610bc423b1f5f /activerecord/lib/active_record/core.rb | |
parent | 4a1bb9d0ce985fd105f930078a733601b29ef8a4 (diff) | |
download | rails-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.rb | 2 |
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 |