Flowdock
method

update_with_timestamps

Importance_0
v2.3.8 - Show latest stable - 0 notes - Class: ActiveRecord::Timestamp
update_with_timestamps(*args) 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/timestamp.rb, line 56
      def update_with_timestamps(*args) #:nodoc:
        if record_timestamps && (!partial_updates? || changed?)
          current_time = current_time_from_proper_timezone

          write_attribute('updated_at', current_time) if respond_to?(:updated_at)
          write_attribute('updated_on', current_time) if respond_to?(:updated_on)
        end

        update_without_timestamps(*args)
      end
Register or log in to add new notes.