lib/raven/interfaces.rb in sentry-raven-0.9.1 vs lib/raven/interfaces.rb in sentry-raven-0.9.2
- old
+ new
@@ -3,9 +3,13 @@
module Raven
INTERFACES = {}
class Interface < Hashie::Dash
+ if defined?(Hashie::Extensions::Dash::IndifferentAccess)
+ include Hashie::Extensions::Dash::IndifferentAccess
+ end
+
def initialize(attributes = {}, &block)
@check_required = false
super(attributes)
block.call(self) if block
@check_required = true