Sha256: a034b0be123070a8776d94bb38ca26f4c9d119a2676a8739d9a41957a0388d6d
Contents?: true
Size: 550 Bytes
Versions: 9
Compression:
Stored size: 550 Bytes
Contents
class Wupee::InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def copy_notifications_mailer template "notifications_mailer.rb", "app/mailers/notifications_mailer.rb" end def add_wupee_routes route 'mount Wupee::Engine, at: "/wupee"' end def copy_initializer template "wupee.rb", "config/initializers/wupee.rb" end def add_subject_locale append_file "config/locales/#{I18n.locale.to_s}.yml" do <<-CODE wupee: email_subjects: CODE end end end
Version data entries
9 entries across 9 versions & 1 rubygems