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:
parent
5bbbcb9edf
commit
f247968046
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ module FactoryGirl
|
||||||
1
|
1
|
||||||
end
|
end
|
||||||
|
|
||||||
def aliases_for?(attr)
|
def alias_for?(attr)
|
||||||
FactoryGirl.aliases_for(attr).include?(name)
|
FactoryGirl.aliases_for(attr).include?(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -180,7 +180,7 @@ module FactoryGirl
|
||||||
end
|
end
|
||||||
|
|
||||||
def overrides_for_attribute(attribute)
|
def overrides_for_attribute(attribute)
|
||||||
@overrides.select { |attr, val| attribute.aliases_for?(attr) }
|
@overrides.select { |attr, val| attribute.alias_for?(attr) }
|
||||||
end
|
end
|
||||||
|
|
||||||
def handle_attribute_with_overrides(attribute)
|
def handle_attribute_with_overrides(attribute)
|
||||||
|
|
Loading…
Reference in a new issue