instance method changes_include?

Ruby on Rails 5.0.7.2

Since v4.2.11.3 Last seen in v5.2.8.1 Private — implementation detail, not part of the public API

Available in: v4.2.11.3 v5.0.7.2 v5.1.7 v5.2.8.1

Signature

changes_include?(attr_name)

Returns true if attr_name is changed, false otherwise.

Parameters

attr_name req
Source
# File activemodel/lib/active_model/dirty.rb, line 204
      def changes_include?(attr_name)
        attributes_changed_by_setter.include?(attr_name)
      end

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

Defined in ActiveModel::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