Sha256: 97b7599f5dea770e4c9ba3e64a395e87672886ebdee44dbcb3bd862660b006aa
Contents?: true
Size: 295 Bytes
Versions: 4
Compression:
Stored size: 295 Bytes
Contents
module DynamicFields 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
4 entries across 4 versions & 1 rubygems