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