Class: PublicRescue::Generators::PublicRescueGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PublicRescue::Generators::PublicRescueGenerator
- Defined in:
- lib/generators/public_rescue/public_rescue_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_controller_files ⇒ Object
9 10 11 12 |
# File 'lib/generators/public_rescue/public_rescue_generator.rb', line 9 def create_controller_files template 'lib/generators/template/controller.rb', File.join('app/controllers', class_path, "#{file_name}_controller.rb") directory "app/views/public_rescue/public_errors", File.join('app/views', class_path, "#{file_name}") end |