Sha256: 34536064a0c9da8f185b0a34a1f8001a90c2b9ddd6be6c66d9e2af6903df2cf8
Contents?: true
Size: 301 Bytes
Versions: 1
Compression:
Stored size: 301 Bytes
Contents
module PersistedAttributes class Changes::Delete attr_reader :record, :field_name, :value def initialize(field_name, record) @field_name, @record = field_name, record @value = nil end def save record.public_send("#{field_name}_attribute=", nil) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
persisted_attributes-0.1.0 | lib/persisted_attributes/changes/delete.rb |