Sha256: 9d379b17423bcde4eab3c0d17d7f760b3ba40cbdbb86ade9fa7a240ffb1c70b5
Contents?: true
Size: 472 Bytes
Versions: 5
Compression:
Stored size: 472 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 => "spec/factories", :desc => "The directory where the factories should go" def create_fixture_file template 'fixtures.rb', File.join(options[:dir], "#{table_name}.rb") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems