Class: Guard::ControllerGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_guard_fileObject

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