Sha256: b09d7aa3e7d86758e967df643f5a7e53f4b2f2a43746437bf2573f28731d9b65
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 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(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.2.0 | lib/logux/model/proxy.rb |