instance method
_create_record
Ruby on Rails 6.0.6
Since v4.0.13 PrivateSignature
_create_record()
No documentation comment.
Source
# File activerecord/lib/active_record/timestamp.rb, line 99
def _create_record
if record_timestamps
current_time = current_time_from_proper_timezone
all_timestamp_attributes_in_model.each do |column|
if !attribute_present?(column)
_write_attribute(column, current_time)
end
end
end
super
end
Defined in activerecord/lib/active_record/timestamp.rb line 99
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Timestamp