Sha256: 8362160bcf6231116850ec79af70de7ed1ab2221cca57e14615bfda002b6e227

Contents?: true

Size: 598 Bytes

Versions: 6

Compression:

Stored size: 598 Bytes

Contents

require 'rails/generators/active_record/model/model_generator'
require File.join(File.dirname(__FILE__), '../test_unit/model_generator')
require File.join(File.dirname(__FILE__), '../base')

module RogersScaffold
  module Generators
    class ActiveRecordGenerator < ::ActiveRecord::Generators::ModelGenerator
      include ::RogersScaffold::Base

      source_root superclass.source_root

      hook_for :test_framework, :in => 'rogers_scaffold:model'

      def initialize(args, *options) #:nodoc:
        super
      end

      protected
      def migration_action; 'add'; end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rogers_scaffold-0.1.6 lib/generators/rogers_scaffold/active_record/active_record_generator.rb
rogers_scaffold-0.1.5 lib/generators/rogers_scaffold/active_record/active_record_generator.rb
rogers_scaffold-0.1.4 lib/generators/rogers_scaffold/active_record/active_record_generator.rb
rogers_scaffold-0.1.3 lib/generators/rogers_scaffold/active_record/active_record_generator.rb
rogers_scaffold-0.1.2 lib/generators/rogers_scaffold/active_record/active_record_generator.rb
rogers_scaffold-0.1.1 lib/generators/rogers_scaffold/active_record/active_record_generator.rb