# File lib/factory_girl/attribute_list.rb, line 36 def apply_attributes(attributes_to_apply) new_attributes = [] attributes_to_apply.each do |attribute| if attribute_defined?(attribute.name) @attributes.each_value do |attributes| attributes.delete_if do |attrib| new_attributes << attrib.clone if attrib.name == attribute.name end end else new_attributes << attribute.clone end end prepend_attributes new_attributes end