Sha256: 75417ceda229a278b420de0dcb5f704bbb60f1d6ef6253a06d377d822420ba1b
Contents?: true
Size: 584 Bytes
Versions: 35
Compression:
Stored size: 584 Bytes
Contents
require 'rails/generators/resource_helpers' require 'rails/generators/rails/model/model_generator' module Rails module Generators class ResourceGenerator < ModelGenerator # :nodoc: include ResourceHelpers hook_for :resource_controller, required: true do |controller| invoke controller, [ controller_name, options[:actions] ] end class_option :actions, type: :array, banner: "ACTION ACTION", default: [], desc: "Actions for the resource controller" hook_for :resource_route, required: true end end end
Version data entries
35 entries across 35 versions & 4 rubygems