1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00

Fix method name

This commit is contained in:
Joshua Clayton 2011-11-25 21:06:50 -05:00
parent 5bbbcb9edf
commit f247968046
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ module FactoryGirl
1
end
def aliases_for?(attr)
def alias_for?(attr)
FactoryGirl.aliases_for(attr).include?(name)
end

View file

@ -180,7 +180,7 @@ module FactoryGirl
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)