Method: ActiveEntity::Core#freeze
- Defined in:
- lib/active_entity/core.rb
#freeze ⇒ Object
Clone and freeze the attributes hash such that associations are still accessible, even on destroyed records, but cloned models will not be frozen.
213 214 215 216 |
# File 'lib/active_entity/core.rb', line 213 def freeze @attributes = @attributes.clone.freeze self end |