Class: BugReportsClient::Generators::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/bug_reports_client/views/views_generator.rb

Overview

Copies the engine's views into the host app for full customisation:

bin/rails g bug_reports_client:views

Copied views shadow the engine's per-file (Rails checks the host first), so you can copy everything and delete what you don't change. Note that copied files no longer receive engine updates.

Instance Method Summary collapse

Instance Method Details

#copy_viewsObject



14
15
16
# File 'lib/generators/bug_reports_client/views/views_generator.rb', line 14

def copy_views
  directory "bug_reports_client", "app/views/bug_reports_client"
end