instance method attribute_was

Ruby on Rails 5.1.7

Since v5.1.7 Last seen in v5.1.7

Signature

attribute_was(*)

No documentation comment.

Parameters

args rest
Source
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 215
      def attribute_was(*)
        emit_warning_if_needed("attribute_was", "attribute_before_last_save")
        super
      end

Defined in activerecord/lib/active_record/attribute_methods/dirty.rb line 215 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::AttributeMethods::Dirty

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close