Sha256: f37d5c6574adc9dedb123b813197d54021702d013a955dde8bb97faae3649170

Contents?: true

Size: 332 Bytes

Versions: 5

Compression:

Stored size: 332 Bytes

Contents

require 'rails/generators/named_base'

module Fabricators
  module Generators
    class ModelGenerator < Rails::Generators::NamedBase

      source_root File.expand_path('../templates', __FILE__)

      def create_fixture_file
        template 'fabricator.rb', Fabricators.path.join("#{table_name}.rb")
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fabricators-0.1.2 lib/generators/fabricators/model/model_generator.rb
fabricators-0.1.1 lib/generators/fabricators/model/model_generator.rb
fabricators-0.1.0 lib/generators/fabricators/model/model_generator.rb
fabricators-0.0.4 lib/generators/fabricators/model/model_generator.rb
fabricators-0.0.1 lib/generators/fabricators/model/model_generator.rb