Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix method name

  • Loading branch information...
commit f24796804695ffc9f8ec54458603e3a1bebba2f3 1 parent 5bbbcb9
@joshuaclayton joshuaclayton authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/factory_girl/attribute.rb
  2. +1 −1  lib/factory_girl/factory.rb
View
2  lib/factory_girl/attribute.rb
@@ -27,7 +27,7 @@ def priority
1
end
- def aliases_for?(attr)
+ def alias_for?(attr)
FactoryGirl.aliases_for(attr).include?(name)
end
View
2  lib/factory_girl/factory.rb
@@ -180,7 +180,7 @@ def apply_remaining_overrides
end
def overrides_for_attribute(attribute)
- @overrides.select { |attr, val| attribute.aliases_for?(attr) }
+ @overrides.select { |attr, val| attribute.alias_for?(attr) }
end
def handle_attribute_with_overrides(attribute)
Please sign in to comment.
Something went wrong with that request. Please try again.