Sha256: 59e61d3df1e77b80b00d66b07d0e3436ab11fd8596519b962b03998a44fa3168
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 Bytes
Contents
class MicMonitorGem::InstallGenerator < ::Rails::Generators::Base source_root File.expand_path('templates', __dir__) ENV_PATH = "#{Rails.root}/config/environments/production.rb" def add_config_email_to_env_produciton append_to_file ENV_PATH do <<-'RUBY' Rails.application.config.middleware.use ExceptionNotification::Rack, email: { deliver_with: :deliver, # Rails >= 4.2.1 do not need this option since it defaults to :deliver_now email_prefix: ENV['EMAIL_PREFIX'], sender_address: ENV['SENDER_ADDRESS'], exception_recipients: ENV['EXCEPTION_RECINPIENTS'] } RUBY end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mic_monitor_gem-0.2.7 | lib/mic_monitor_gem/generator/mic_monitor_gem/install_generator.rb |