Sha256: e56d4aaf034fa6eb1ae98335380d049eb32bd90f3ab7f4b218e3ce149b62e1e6
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
require "bard/staging_banner/version" require "bard/staging_banner/middleware" module Bard module StagingBanner class Engine < ::Rails::Engine if Rails.env.staging? config.app_middleware.use Middleware end if defined?(ActionMailer) && %w[development staging].include?(Rails.env) initializer "bard-staging_banner.mount_letter_opener_web" do |app| require "letter_opener_web" config.action_mailer.delivery_method = :letter_opener app.routes.append do mount LetterOpenerWeb::Engine, at: "/mails" end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bard-staging_banner-0.3.2 | lib/bard/staging_banner.rb |