Sha256: cc7e1b74fcf18072aa212756a3371937de836daaa8e8a60cf678538cdaf98598
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true module Logux module Model class Proxy def initialize(model) @model = model end def update(meta, attributes) updater = Updater.new( model: @model, logux_order: meta.logux_order, attributes: attributes ) @model.update_attributes(updater.updated_attributes) end def updated_at(field) @model.logux_fields_updated_at[field.to_s] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logux_rails-0.1.0 | lib/logux/model/proxy.rb |