Sha256: f0d1ac7a03d0aa948cae95f79933265c9bce066431baeca8e9e73b6846ecac1f
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
module MobileWorkflow module Generators # Custom scaffolding generator class ControllerGenerator < Rails::Generators::NamedBase include Rails::Generators::ResourceHelpers def self.source_root Rails.root end def copy_controller_and_spec_files template "lib/generators/mobile_workflow/templates/controller.rb", File.join("app/controllers", "#{controller_file_name}_controller.rb") template "lib/generators/mobile_workflow/templates/controller_spec.rb", File.join("spec/controllers", "#{controller_file_name}_controller_spec.rb") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mobile_workflow_cli-0.1.4 | templates/controller_generator.rb |