class method self.write

Ruby on Rails 4.1.16

Since v4.1.16 Last seen in v4.1.16

Signature

self.write(object, attribute, key, value)

No documentation comment.

Parameters

object req
attribute req
key req
value req
Source
# File activerecord/lib/active_record/store.rb, line 141
        def self.write(object, attribute, key, value)
          prepare(object, attribute)
          if value != read(object, attribute, key)
            object.public_send :"#{attribute}_will_change!"
            object.public_send(attribute)[key] = value
          end
        end

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

Defined in ActiveRecord::Store::HashAccessor

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