lib/acts_as_diffable.rb
# Helper for processing a single associated object,
# such as has_one (or belongs_to) associations.
Helper for processing a single associated object,
such as has_one (or belongs_to) associations.
Helper for processing a single associated object such as has_one ( or belongs_to ) associations .
def singular_association_diff(left_parent, right_parent, association)
          association = association.to_s 
          attributes_diff(
            left_parent.instance_eval(association),
            right_parent.instance_eval(association),
            association_ids(left_parent) )
        end
def singular_association_diff ( left_parent , right_parent , association ) association = association . to_s attributes_diff ( left_parent . instance_eval ( association ) , right_parent . instance_eval ( association ) , association_ids ( left_parent ) ) end
Helper for processing a single associated object,
such as has_one (or belongs_to) associations.
Helper for processing a single associated object such as has_one ( or belongs_to ) associations .
#instance_eval doesn't like symbols.  What'ev.
left_parent
<not_specific>
right_parent
<not_specific>
association
<not_specific>