You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Documentation] ActiveSupport::InheritableOptions with string keys
Updated the ActiveSupport::InheritableOptions documentation to exemplify
how to use a parent hash that contains string keys.
parent = { "foo" => true }
child = ActiveSupport::InheritableOptions.new(parent.symbolize_keys)
child.foo # => true
This example is helpful because ActiveSupport::OrderedOptions only deals
with symbol keys and this implementation detail is hidden from the API
docs.
Co-authored-by: Jonathan Hefner <[email protected]>
0 commit comments