Class: ActiveRecord::InternalMetadata
- Inherits:
-
Base
- Object
- Base
- ActiveRecord::InternalMetadata
- Defined in:
- lib/activerecord/monkey_patch/rails5_0.rb
Overview
Original code is the following URL.
github.com/rails/rails/blob/v5.0.0.1/activerecord/lib/active_record/internal_metadata.rb#L18
Class Method Summary collapse
Class Method Details
.[]=(key, value) ⇒ Object
14 15 16 |
# File 'lib/activerecord/monkey_patch/rails5_0.rb', line 14 def []=(key, value) find_or_initialize_by(key: key).update_attributes!(value: value.to_s) end |