Skip to content

Commit

Permalink
Fix call to Settings.instance.inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Mar 25, 2024
1 parent f799c7e commit 81e1d34
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/active_settings/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ def merge!(other)


def method_missing(method_name, *args)
return super if method_name == :respond_to_missing?

if ActiveSettings.fail_on_missing && method_name !~ /.*(?==\z)/m
raise KeyError, "key not found: #{method_name.inspect}" unless key?(method_name)
end

super
end

Expand All @@ -58,5 +61,7 @@ def respond_to_missing?(method_name, include_private = false)
key?(method_name) || super
end

public :respond_to_missing?

end
end

0 comments on commit 81e1d34

Please sign in to comment.