Class: AjaxErrorRender::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/ajax_error_render/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_ajax_error_render_fileObject



5
6
7
8
# File 'lib/generators/ajax_error_render/install/install_generator.rb', line 5

def copy_ajax_error_render_file
  copy_file "error.js.erb", "app/views/errors/error.js.erb"
  copy_file "_error.html.erb", "app/views/errors/_error.html.erb"
end