lib/raven/interfaces.rb in sentry-raven-0.9.3 vs lib/raven/interfaces.rb in sentry-raven-0.9.4

- old
+ new

@@ -12,10 +12,20 @@ def initialize(attributes = {}, &block) @check_required = false super(attributes) block.call(self) if block @check_required = true - assert_required_properties_set! + + begin + assert_required_attributes_set! + rescue NoMethodError + assert_required_properties_set! + end + + end + + def assert_required_attributes_set! + super if @check_required end def assert_required_properties_set! super if @check_required end