instance method
init_internals
Ruby on Rails 4.0.13
Since v4.0.13 PrivateSignature
init_internals()
No documentation comment.
Source
# File activerecord/lib/active_record/core.rb, line 437
def init_internals
pk = self.class.primary_key
@attributes[pk] = nil unless @attributes.key?(pk)
@aggregation_cache = {}
@association_cache = {}
@attributes_cache = {}
@previously_changed = {}
@changed_attributes = {}
@readonly = false
@destroyed = false
@marked_for_destruction = false
@destroyed_by_association = nil
@new_record = true
@txn = nil
@_start_transaction_state = {}
@transaction_state = nil
@reflects_state = [false]
end
Defined in activerecord/lib/active_record/core.rb line 437
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Core