Sha256: b6f2a67931c94c588c6c0391abca0fb537ce8c9423c604fd21e463a8c3250421
Contents?: true
Size: 502 Bytes
Versions: 5
Compression:
Stored size: 502 Bytes
Contents
require 'rails/generators/rails/scaffold/scaffold_generator' module Goma module Generators module Scaffold class ConfirmationGenerator < Rails::Generators::ScaffoldGenerator def initialize(args, *options) options[0] << '--controller-type=confirmation' 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