module Disposable::Twin::Sync::Writeable

Excludes :virtual and :writeable: false properties from sync in this twin.

Public Instance Methods

sync_options(options) click to toggle source
Calls superclass method
# File lib/disposable/twin/sync.rb, line 119
def sync_options(options)
  options = super

  protected_fields = schema.each.find_all { |d| d[:writeable] == false }.collect { |d| d[:name] }
  options.exclude!(protected_fields)
end