class NotFoundCatcherGenerator
Public Instance Methods
create_initializer()
click to toggle source
# File lib/generators/not_found_catcher/not_found_catcher_generator.rb, line 4 def create_initializer copy_file 'not_found_catcher.rb.erb', 'config/initializers/not_found_catcher.rb' end
install_routes()
click to toggle source
# File lib/generators/not_found_catcher/not_found_catcher_generator.rb, line 8 def install_routes route 'mount NotFoundCatcher::Engine => "/not_found_catcher"' end