Factory

Public Class Methods

const_missing(name) click to toggle source
# File lib/factory_girl/deprecated.rb, line 11
def self.const_missing(name)
  if FactoryGirl.const_defined?(name)
    FactoryGirl.const_get(name)
  else
    super(name)
  end
end
method_missing(name, *args, &block) click to toggle source
# File lib/factory_girl/deprecated.rb, line 2
def self.method_missing(name, *args, &block)
  if FactoryGirl.respond_to?(name)
    $stderr.puts "DEPRECATION WARNING: Change Factory.#{name} to FactoryGirl.#{name}"
    FactoryGirl.send(name, *args, &block)
  else
    super(name, *args, &block)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.