Guest User

Untitled

a guest
Apr 24th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. # File 'lib/factory_girl/factory.rb', line 48
  2.  
  3. def self.define (name, options = {})
  4. instance = Factory.new(name, options)
  5. yield(instance)
  6. if parent = options.delete(:parent)
  7. instance.inherit_from(Factory.factory_by_name(parent))
  8. end
  9. self.factories[instance.factory_name] = instance
  10. end
Add Comment
Please, Sign In to add comment