Class: Guard::ControllerGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Guard::ControllerGenerator
- Defined in:
- lib/generators/guard/controller/controller_generator.rb
Instance Method Summary collapse
-
#create_guard_file ⇒ Object
check_class_collision :suffix => “Guard”.
Instance Method Details
#create_guard_file ⇒ Object
check_class_collision :suffix => “Guard”
10 11 12 |
# File 'lib/generators/guard/controller/controller_generator.rb', line 10 def create_guard_file template 'guard.yml', File.join('app', 'guards', class_path, "#{file_name}_guard.yml") end |