Sha256: 1d3ac43bfc5d02e4167f636e3390eac6ba8dcc47dd85b2d615197ddbfdf1ff0a
Contents?: true
Size: 490 Bytes
Versions: 5
Compression:
Stored size: 490 Bytes
Contents
require 'rails/generators/rails/scaffold/scaffold_generator' module Goma module Generators module Scaffold class UnlockGenerator < Rails::Generators::ScaffoldGenerator def initialize(args, *options) options[0] << '--controller-type=unlock' super end remove_hook_for :orm hook_for :resource_route, required: true, in: 'goma' hook_for :scaffold_controller, required: true, in: 'goma' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems