class Notifly::Generators::ViewsGenerator
Public Instance Methods
copy_views()
click to toggle source
# File lib/generators/notifly/views/views_generator.rb, line 13 def copy_views notifications_templates if options.notification? notifications_mails_templates if options.mail? layout_files if options.layout? end
Private Instance Methods
layout_files()
click to toggle source
# File lib/generators/notifly/views/views_generator.rb, line 32 def layout_files directory 'layouts', "#{main_app_path}/layouts" end
main_app_path()
click to toggle source
# File lib/generators/notifly/views/views_generator.rb, line 20 def main_app_path 'app/views/notifly' end
notifications_mails_templates()
click to toggle source
# File lib/generators/notifly/views/views_generator.rb, line 28 def notifications_mails_templates directory 'templates/mails', "#{main_app_path}/templates/mails" end
notifications_templates()
click to toggle source
# File lib/generators/notifly/views/views_generator.rb, line 24 def notifications_templates directory 'templates/notifications', "#{main_app_path}/templates/notifications" end