Skip to content

Commit

Permalink
make the private methods private
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Feb 1, 2015
1 parent da8de91 commit c7f22c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/core.rb
Expand Up @@ -482,6 +482,8 @@ def slice(*methods)
Hash[methods.map! { |method| [method, public_send(method)] }].with_indifferent_access
end

private

def set_transaction_state(state) # :nodoc:
@transaction_state = state
end
Expand All @@ -490,8 +492,6 @@ def has_transactional_callbacks? # :nodoc:
!_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
Expand Down

0 comments on commit c7f22c7

Please sign in to comment.