instance method reset_changes

Ruby on Rails 4.2.9

Since v4.1.16 Last seen in v4.2.9 Private

Available in: v4.1.16 v4.2.9

Signature

reset_changes()

No documentation comment.

Source
# File activemodel/lib/active_model/dirty.rb, line 212
      def reset_changes
        ActiveSupport::Deprecation.warn(<<-MSG.squish)
          `#reset_changes` is deprecated and will be removed on Rails 5.
          Please use `#clear_changes_information` instead.
        MSG

        clear_changes_information
      end

Defined in activemodel/lib/active_model/dirty.rb line 212 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::Dirty

Type at least 2 characters to search.

↑↓ navigate · open · esc close