method

fill_timestamps

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: TableRow
fill_timestamps() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/fixture_set/table_row.rb, line 77
        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
Register or log in to add new notes.