Sha256: 13e895e2e184efe9fb65024438f7a4f7b2cfe5e7780f66410005304a7f52cd37
Contents?: true
Size: 444 Bytes
Versions: 1
Compression:
Stored size: 444 Bytes
Contents
module FileRecord module AttributeMethods module Write extend ActiveSupport::Concern include ActiveModel::AttributeMethods included do attribute_method_prefix "clear_" attribute_method_suffix "=" end protected def attribute=(name, value) @attributes[name] = value end def clear_attribute(attribute) send(:"#{attribute}=", nil) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
file_record-0.1.0 | lib/file_record/attribute_methods/write.rb |