aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/core.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-02-01 13:59:46 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2015-02-01 13:59:46 -0800
commitc7f22c779403f2275341245564c092442fc6e0f0 (patch)
tree9d6b41645b2fd6c47aad5bdb040ba049654a42cf /activerecord/lib/active_record/core.rb
parentda8de9114b41618322dde17c35b891ade46751fe (diff)
downloadrails-c7f22c779403f2275341245564c092442fc6e0f0.tar.gz
rails-c7f22c779403f2275341245564c092442fc6e0f0.tar.bz2
rails-c7f22c779403f2275341245564c092442fc6e0f0.zip
make the private methods private
Diffstat (limited to 'activerecord/lib/active_record/core.rb')
-rw-r--r--activerecord/lib/active_record/core.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index 4416217897..6ed5dd0bfa 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -482,6 +482,8 @@ module ActiveRecord
Hash[methods.map! { |method| [method, public_send(method)] }].with_indifferent_access
end
+ private
+
def set_transaction_state(state) # :nodoc:
@transaction_state = state
end
@@ -490,8 +492,6 @@ module ActiveRecord
!_rollback_callbacks.empty? || !_commit_callbacks.empty? || !_create_callbacks.empty?
end
- private
-
# Updates the attributes on this particular ActiveRecord object so that
# if it is associated with a transaction, then the state of the AR object
# will be updated to reflect the current state of the transaction