Module: ChainLink::ClassMethods

Defined in:
lib/chainlink.rb

Instance Method Summary collapse

Instance Method Details

#as_merge_targetsObject



31
32
33
# File 'lib/chainlink.rb', line 31

def as_merge_targets
  joins(merge_target_join_clause).select(merge_target_select_clause)
end

#find_merge_target(*args) ⇒ Object



27
28
29
# File 'lib/chainlink.rb', line 27

def find_merge_target(*args)
  as_merge_targets.find(*args)
end

#merge!(target, source) ⇒ Object



35
36
37
# File 'lib/chainlink.rb', line 35

def merge!(target, source)
  target.merge!(source)
end