Module: SampleModels::ARClassMethods

Defined in:
lib/sample_models.rb

Instance Method Summary collapse

Instance Method Details

#create_sample(*args) ⇒ Object



28
29
30
31
# File 'lib/sample_models.rb', line 28

def create_sample(*args)
  ActiveSupport::Deprecation.warn("#{self.name}.create_sample is deprecated and will be removed in the next major version of SampleModels. Call #{self.name}.sample instead")
  sample(*args)
end

#sample(*args) ⇒ Object



33
34
35
# File 'lib/sample_models.rb', line 33

def sample(*args)
  SampleModels.samplers[self].sample(*args)
end