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
83 84 85 86 87 88 |
# File 'lib/disposable/twin/sync.rb', line 83 def () = super protected_fields = schema.each.find_all { |d| d[:writeable] == false }.collect { |d| d.name } .exclude!(protected_fields) end |