Sha256: b8e7f7d4e3843d81fd5dcdda7165c2ba3e14c0436c11153d9da822b18324934b
Contents?: true
Size: 473 Bytes
Versions: 17
Compression:
Stored size: 473 Bytes
Contents
require 'generators/factory_girl' module FactoryGirl module Generators class ModelGenerator < Base argument :attributes, :type => :array, :default => [], :banner => "field:type field:type" class_option :dir, :type => :string, :default => "test/factories", :desc => "The directory where the factories should go" def create_fixture_file template 'fixtures.erb', File.join(options[:dir], "#{table_name}.rb") end end end end
Version data entries
17 entries across 17 versions & 3 rubygems