Module: RactorRailsShim::ActiveModelAttributePatch::InstanceMethods
- Defined in:
- lib/ractor_rails_shim/patches/active_model_attribute.rb
Instance Method Summary collapse
-
#dup_or_share ⇒ Object
:nodoc:.
Instance Method Details
#dup_or_share ⇒ Object
:nodoc:
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/ractor_rails_shim/patches/active_model_attribute.rb', line 30 def dup_or_share # :nodoc: if frozen? self.class.from_database( name, value_before_type_cast, type, defined?(@value) ? @value : nil ) else super end end |