class UserNotifGenerator
Public Instance Methods
copy_files()
click to toggle source
# File lib/generators/user_notif/user_notif_generator.rb, line 10 def copy_files template 'notif.rb.erb', "app/models/notifs/#{file_name}_notif.rb" template 'notif_email.text.erb', "app/views/notifs/mailer/#{file_name}_notif.html.erb" template 'notif_email.text.erb', "app/views/notifs/mailer/#{file_name}_notif.text.erb" copy_file 'small_notif_view.html.erb', "app/views/notifs/small/_#{file_name}_notif.html.erb" copy_file 'full_notif_view.html.erb', "app/views/notifs/full/_#{file_name}_notif.html.erb" end