blob: 1dca03e0bba4b9c9886ebf4a3f6085a7b0515702 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# frozen_string_literal: true
require_relative "../../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, desc: "ORM to be invoked"
end
end
end
|