Method: Fakerize::Model#initialize
- Defined in:
- lib/fakerize/model.rb
#initialize(model, config = {}) ⇒ Model
Returns a new instance of Model.
4 5 6 7 |
# File 'lib/fakerize/model.rb', line 4 def initialize(model, config = {}) @model = model @config = Fakerize::Configuration.new default_config.merge(config) end |