class ArSync::HasOneField
Public Instance Methods
data(_parent, child, action:, **)
click to toggle source
# File lib/ar_sync/field.rb, line 45 def data(_parent, child, action:, **) child._sync_data new_record: action == :create end
path(_child)
click to toggle source
# File lib/ar_sync/field.rb, line 49 def path(_child) [name] end
type()
click to toggle source
# File lib/ar_sync/field.rb, line 41 def type :one end