Module: Disposable::Twin::Sync::Writeable
- Included in:
- Disposable::Twin::Sync
- Defined in:
- lib/disposable/twin/sync.rb
Overview
Excludes :virtual and :writeable: false properties from #sync in this twin.
Instance Method Summary collapse
Instance Method Details
#sync_options(options) ⇒ Object
119 120 121 122 123 124 |
# File 'lib/disposable/twin/sync.rb', line 119 def () = super protected_fields = schema.each.find_all { |d| d[:writeable] == false }.collect { |d| d[:name] } .exclude!(protected_fields) end |