Class: HorsePower::ControllerGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/horse_power/controller/controller_generator.rb

Instance Method Summary collapse

Instance Method Details

#sprintObject



8
9
10
# File 'lib/generators/horse_power/controller/controller_generator.rb', line 8

def sprint
template "controller_template.rb.erb", "app/controllers/api/v#{api_version}/#{HorsePower.get_plural(resource_name)}_controller.rb"
end