Skip to content

Commit

Permalink
Call super with parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed Dec 11, 2023
1 parent e91e707 commit 516f665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ostruct-sanitizer/lib/ostruct/sanitizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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))

Expand Down

0 comments on commit 516f665

Please sign in to comment.