lib/catissue/helpers/collectible.rb
def merge_attributes(other, attributes=nil, matches=nil, &filter)
      if Hash === other then
        # extract the event parameters
        other[:specimen_event_parameters] = extract_event_parameters(other)
      end
      # delegate to super for standard attribute value merge
      super
    end
def merge_attributes(other, attributes=nil, matches=nil, &filter)
      if Hash === other then
        # extract the event parameters
        other[:specimen_event_parameters] = extract_event_parameters(other)
      end
      # delegate to super for standard attribute value merge
      super
    end
def merge_attributes ( other , attributes = nil , matches = nil , & filter ) if Hash === other then # extract the event parameters other [ :specimen_event_parameters ] = extract_event_parameters ( other ) end # delegate to super for standard attribute value merge super end
Augments +Jinx::Resource#merge_attributes+ to builds this collectible domain object's
 SpecimenEventParameters. If the other source object is a Hash, then it includes
 both the standard attribute => value associations as well as the options described
 below.

 @example
   scg = CaTissue::SpecimenCollectionGroup.new(..., :collector => srg)
   scg.collection_event_parameters.user #=> srg

 @param other [Collectible, {Symbol => Object}] other the source object or Hash
 @option other [Enumerable] :specimen_event_parameters the optional SEP merge collection to augment
 @option other [CaTissue::User] :receiver the tissue bank user who received the tissue
 @option other [Date] :received_date the received date (defaults to now)
 @option other [CaTissue::User] :collector the user who acquired the tissue
   (defaults to the receiver)
 @option opts [Date] :collected_date the collection date (defaults to the received date)
Augments + Jinx :: Resource#merge_attributes + to builds this collectible domain object s SpecimenEventParameters . If the other source object is a Hash then it includes both the standard attribute = > value associations as well as the options described below .