diff --git a/packages/ostruct-sanitizer/lib/ostruct/sanitizer.rb b/packages/ostruct-sanitizer/lib/ostruct/sanitizer.rb index 952d44e5..8957aba5 100644 --- a/packages/ostruct-sanitizer/lib/ostruct/sanitizer.rb +++ b/packages/ostruct-sanitizer/lib/ostruct/sanitizer.rb @@ -28,7 +28,7 @@ def self.included(base) # Initializes the OpenStruct applying any registered sanitization rules # def initialize(attrs = {}) - super nil + super(nil) attrs.each_pair do |field, value| self[field] = value end @@ -43,7 +43,7 @@ def initialize(attrs = {}) def method_missing(method, *args) # Give OpenStruct a chance to create getters and setters for the # corresponding field - super method, *args + super(method, *args) return unless (field = setter?(method))