class Wupee::InstallGenerator
Public Instance Methods
add_subject_locale()
click to toggle source
# File lib/generators/wupee/install/install_generator.rb, line 16 def add_subject_locale append_file "config/locales/#{I18n.locale.to_s}.yml" do <<-CODE wupee: email_subjects: CODE end end
add_wupee_routes()
click to toggle source
# File lib/generators/wupee/install/install_generator.rb, line 8 def add_wupee_routes route 'mount Wupee::Engine, at: "/wupee"' end
copy_initializer()
click to toggle source
# File lib/generators/wupee/install/install_generator.rb, line 12 def copy_initializer template "wupee.rb", "config/initializers/wupee.rb" end
copy_notifications_mailer()
click to toggle source
# File lib/generators/wupee/install/install_generator.rb, line 4 def copy_notifications_mailer template "notifications_mailer.rb", "app/mailers/notifications_mailer.rb" end