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