Skip to content

Commit

Permalink
Use #first instead of the soon-to-be deprecated #find(:first)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Aug 13, 2011
1 parent 554e6ab commit d56125d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/factory_girl/step_definitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def association_instance
return unless association

if attributes_hash = nested_attribute_hash
factory.build_class.find(:first, :conditions => attributes_hash.attributes(FindAttributes)) or
factory.build_class.first(:conditions => attributes_hash.attributes(FindAttributes)) or
FactoryGirl.create(association.factory, attributes_hash.attributes)
end
end
Expand Down

0 comments on commit d56125d

Please sign in to comment.