lib/yogi_berra.rb in yogi_berra-0.0.8 vs lib/yogi_berra.rb in yogi_berra-0.0.9
- old
+ new
@@ -15,11 +15,11 @@
class << self
# Stores the notice exception
# @see YogiBerra.exceptionize
# @params exception
# @params environment
- # @params database
- def exceptionize(exception, environment, opts = {})
+ # @params opts
+ def exceptionize(exception, environment = nil, opts = {})
notice = build_notice_for(exception, opts)
if YogiBerra::Catcher.connection
YogiBerra::Data.store!(notice, environment)
else
YogiBerra::Logger.log("No database connection!", :error)