Module: Protected::Generators::ViewPathTemplates

Extended by:
ActiveSupport::Concern
Included in:
ViewsGenerator
Defined in:
lib/generators/protected/views/views_generator.rb

Overview

Include this module in your generator to generate Devise views. ‘copy_views` is the main method and by default copies all views with forms.

Instance Method Summary collapse

Instance Method Details

#copy_viewsObject



16
17
18
19
20
21
# File 'lib/generators/protected/views/views_generator.rb', line 16

def copy_views
  view_directory :passwords
  view_directory :sessions
  view_directory "../user_mailer"
  view_directory :users
end