Handle instantiation manually because of kwargs.
17 def self::fixtured_instance( *args, **opts, &block )
18 fixclass = self.fixtured_class or
19 raise ScriptError, "%p doesn't declare its fixtured class!" % [ self ]
20
21 name = Faker::Commerce.product_name
22
23 return fixclass.create( name, **opts )
24 end