Sha256: c66d10c9b20e0388621c3d8f87d9f58761a8dd1dddf82d6beecd55939db9e156

Contents?: true

Size: 455 Bytes

Versions: 30

Compression:

Stored size: 455 Bytes

Contents

require 'rails/generators/named_base'

module FactoryGirl
  module Generators
    class Base < Rails::Generators::NamedBase #:nodoc:
      def self.source_root
        @_factory_girl_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'factory_girl', generator_name, 'templates'))
      end

      def explicit_class_option
        ", :class => '#{class_name}'" unless class_name == singular_table_name.camelize
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 5 rubygems

Version Path
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/factory_girl_rails-4.5.0/lib/generators/factory_girl.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/factory_girl_rails-4.5.0/lib/generators/factory_girl.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/factory_girl_rails-4.5.0/lib/generators/factory_girl.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/factory_girl_rails-4.5.0/lib/generators/factory_girl.rb
factory_girl_rails-4.5.0 lib/generators/factory_girl.rb
factory_girl_rails-4.4.1 lib/generators/factory_girl.rb
factory_girl_rails-4.4.0 lib/generators/factory_girl.rb
factory_girl_rails-4.3.0 lib/generators/factory_girl.rb
factory_girl_rails-4.2.1 lib/generators/factory_girl.rb
factory_girl_rails-4.2.0 lib/generators/factory_girl.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-4.1.0/lib/generators/factory_girl.rb
factory_girl_rails-4.1.0 lib/generators/factory_girl.rb
factory_girl_rails-4.0.0 lib/generators/factory_girl.rb
factory_girl_rails-4.0.0.rc1 lib/generators/factory_girl.rb
factory_girl_rails-3.6.0 lib/generators/factory_girl.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-3.2.0/lib/generators/factory_girl.rb
factory_girl_rails-3.5.0 lib/generators/factory_girl.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-3.2.0/lib/generators/factory_girl.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-3.2.0/lib/generators/factory_girl.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/rails-uploader-0.0.1/vendor/bundle/ruby/1.9.1/gems/factory_girl_rails-3.2.0/lib/generators/factory_girl.rb