Skip to content

Commit

Permalink
Merge pull request #5 from silverfin/fix-kwarg-offenses
Browse files Browse the repository at this point in the history
Fix kwarg offenses in policy_options.rb
  • Loading branch information
nudded authored Apr 14, 2023
2 parents e26e51d + 4ba721a commit f0132ae
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ module Strategies
class AzureActiveDirectoryB2C
module PolicyOptions

def respond_to_missing?(method_name, *args)
def respond_to_missing?(method_name, ...)
self.class.instance_methods.include?("policy_#{method_name}".to_sym) || super
end

def method_missing(method_name, *args, &block)
def method_missing(method_name, ...)
policy_method_name = 'policy_%s' % method_name
if respond_to?(policy_method_name)
send(policy_method_name, *args, &block)
send(policy_method_name, ...)
else
super
end
Expand Down

0 comments on commit f0132ae

Please sign in to comment.