Sha256: 513ea8045b01e9b832053a8c06039c5db9a7c63251e1c17f94512b4096d2e9d1

Contents?: true

Size: 522 Bytes

Versions: 9

Compression:

Stored size: 522 Bytes

Contents

module UcbRails
  module Configuration
    
    class ExceptionNotification
      
      class << self
        
        def configure(config)
          return if config.blank?
          
          config = config.symbolize_keys
          config[:email].symbolize_keys!
          config[:email][:email_prefix] = config[:email][:email_prefix].gsub("{env}", RailsEnvironment.short)
          
          Rails.application.config.middleware.use ::ExceptionNotification::Rack, config
        end
      end
    end
    
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ucb_rails-0.0.14 app/models/ucb_rails/configuration/exception_notification.rb
ucb_rails-0.0.13 app/models/ucb_rails/configuration/exception_notification.rb
ucb_rails-0.0.12 app/models/ucb_rails/configuration/exception_notification.rb
ucb_rails-0.0.11 app/models/ucb_rails/configuration/exception_notification.rb
ucb_rails-0.0.10 app/models/ucb_rails/configuration/exception_notification.rb
ucb_rails-0.0.9 app/models/ucb_rails/configuration/exception_notification.rb
ucb_rails-0.0.8 app/models/ucb_rails/configuration/exception_notification.rb
ucb_rails-0.0.7 app/models/ucb_rails/configuration/exception_notification.rb
ucb_rails-0.0.6 app/models/ucb_rails/configuration/exception_notification.rb