Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 388 Bytes
# frozen_string_literal: true
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, desc: "ORM to be invoked"
end
end
end