Module: WhoopsMixin

Defined in:
lib/merb_whoops_notifier/whoops_mixin.rb

Instance Method Summary collapse

Instance Method Details

#notify_whoops(request = nil, session = nil) ⇒ Object



4
5
6
7
8
9
# File 'lib/merb_whoops_notifier/whoops_mixin.rb', line 4

def notify_whoops(request=nil, session=nil)
  request ||= self.request
  session ||= self.session
  
  WhoopsNotifier.notify_whoops(request, session)
end

#warn_whoops(message, request = nil, session = nil, options = {}) ⇒ Object



11
12
13
14
15
16
# File 'lib/merb_whoops_notifier/whoops_mixin.rb', line 11

def warn_whoops(message, request=nil, session=nil, options={})
  request ||= self.request
  session ||= self.session
  
  WhoopsNotifier.warn_whoops(message, request, session, options)
end