Class: Shoulda::Generators::ControllerGenerator
- Inherits:
-
Base
- Object
- Rails::Generators::NamedBase
- Base
- Shoulda::Generators::ControllerGenerator
- Defined in:
- lib/generators/shoulda/controller/controller_generator.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#create_controller_file ⇒ Object
11 12 13 |
# File 'lib/generators/shoulda/controller/controller_generator.rb', line 11 def create_controller_file template 'controller.rb', File.join([:dir], "#{file_name}_controller_test.rb") end |