Sha256: 3a6b3ab49695fbf9e3869771870070fbbfbf592a11c23e2f50e8c08edaf4f01c

Contents?: true

Size: 330 Bytes

Versions: 52

Compression:

Stored size: 330 Bytes

Contents

require 'rails/generators/model_helpers'

module Rails
  module Generators
    class ModelGenerator < NamedBase # :nodoc:
      include Rails::Generators::ModelHelpers

      argument :attributes, type: :array, default: [], banner: "field[:type][:index] field[:type][:index]"
      hook_for :orm, required: true
    end
  end
end

Version data entries

52 entries across 51 versions & 8 rubygems

Version Path
railties-4.2.11.3 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.11.2 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.11.1 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.11 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.10 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.10.rc1 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.9 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.9.rc2 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.9.rc1 lib/rails/generators/rails/model/model_generator.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/railties-4.2.8/lib/rails/generators/rails/model/model_generator.rb
railties-4.2.8 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.8.rc1 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.7.1 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.7 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.7.rc1 lib/rails/generators/rails/model/model_generator.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/generators/rails/model/model_generator.rb
railties-4.2.6 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.6.rc1 lib/rails/generators/rails/model/model_generator.rb
railties-4.2.5.2 lib/rails/generators/rails/model/model_generator.rb
activejob-lock-0.0.2 rails/railties/lib/rails/generators/rails/model/model_generator.rb