Class: ExceptionHandler::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/exception_handler/config.rb

Constant Summary collapse

TABLE_NAME =

Default Table Name Has to be “errors” because “exceptions” is a reserved word

:errors

Class Method Summary collapse

Class Method Details

.defaultsObject

Defaults Merged with Rails options with @@config in engine



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/exception_handler/config.rb', line 19

def self.defaults
  {
    db:     false, #-> defaults to :errors if true, else use :table_name

    email:  false, #-> need to integrate

    social: {
        :facebook   =>   'frontline.utilities',
        :twitter  =>  'frontlineutils',
        :youtube  =>  'frontlineutils',
        :linkedin   =>   'frontline-utilities',
        :fusion   =>   'frontlineutils',
        :url => {
          :facebook  =>  'https://facebook.com',
          :twitter   =>   'http://twitter.com',
          :youtube   => 'https://youtube.com/user',
          :linkedin  =>  'https://linkedin.com/company',
          :fusion  =>  'https://frontlinefusion.com',              
        },
    },
    layouts: {
        '400' => nil,
        '500' => 'exception'
    },
  }
end