instance method clear_timestamp_attributes

Ruby on Rails 3.1.12

Since v3.1.12 Last seen in v3.1.12 Private

Signature

clear_timestamp_attributes()

Clear attributes and changed_attributes

Source
# File activerecord/lib/active_record/base.rb, line 2149
      def clear_timestamp_attributes
        all_timestamp_attributes_in_model.each do |attribute_name|
          self[attribute_name] = nil
          changed_attributes.delete(attribute_name)
        end
      end

Defined in activerecord/lib/active_record/base.rb line 2149 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Base

Type at least 2 characters to search.

↑↓ navigate · open · esc close