Sha256: 2ab0c3b2408d53909a6f9d06f915c8efbdaff8dab3bf7a52da562f481b8594bd
Contents?: true
Size: 631 Bytes
Versions: 126
Compression:
Stored size: 631 Bytes
Contents
require 'rails/generators/resource_helpers' require 'rails/generators/rails/model/model_generator' require 'active_support/core_ext/object/blank' 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
126 entries across 122 versions & 10 rubygems