Sha256: f31d16c16eb9d450d4efb679dc23b71efb42245ad21e42011ab8590d07a74c25
Contents?: true
Size: 640 Bytes
Versions: 2
Compression:
Stored size: 640 Bytes
Contents
require 'generators/nopio_scaffold/generator_helpers' module MysteriousTravellerTestGemFlex module Generators # Custom scaffolding generator class ControllerGenerator < Rails::Generators::NamedBase include Rails::Generators::ResourceHelper include MysteriousTravellerTestGemFlex::Generators::GeneratorHelpers desc "Generates controller, controller_spec and views for the model with the given NAME." source_root File.expand_path('../templates', __FILE__) def copy_controller_and_spec_files template "controller.rb", File.join("app/controllers", "coupons_controller.rb") end end end
Version data entries
2 entries across 2 versions & 1 rubygems