lib/fabricators/methods.rb in fabricators-0.0.4 vs lib/fabricators/methods.rb in fabricators-0.1.0
- old
+ new
@@ -1,10 +1,10 @@
module Fabricators
module Methods
%w(build create attributes_for).each do |method|
define_method method do |name, *args|
- Fabricators.definitions.find(name, :fabricator).send(method, *args)
+ Fabricators.definitions.find(name).send(method, *args)
end
end
end
end