Module: Kingsman::Generators::ViewPathTemplates
- Extended by:
- ActiveSupport::Concern
- Included in:
- ErbGenerator, FormForGenerator, MarkerbGenerator, SharedViewsGenerator, SimpleFormForGenerator
- Defined in:
- lib/generators/kingsman/views_generator.rb
Overview
Include this module in your generator to generate Kingsman views. ‘copy_views` is the main method and by default copies all views with forms.
Instance Method Summary collapse
Instance Method Details
#copy_views ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/generators/kingsman/views_generator.rb', line 26 def copy_views if [:views] [:views].each do |directory| view_directory directory.to_sym end else view_directory :confirmations view_directory :passwords view_directory :registrations view_directory :sessions view_directory :unlocks end end |