method
fill_timestamps
rails latest stable - Class:
ActiveRecord::FixtureSet::TableRow
fill_timestamps()private
No documentation available.
# File activerecord/lib/active_record/fixture_set/table_row.rb, line 76
def fill_timestamps
# fill in timestamp columns if they aren't specified and the model is set to record_timestamps
if model_class.record_timestamps
model_metadata.timestamp_column_names.each do |c_name|
@row[c_name] = @now unless @row.key?(c_name)
end
end
end