-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add explicit implementation of Config::Options#as_json
Before, `Config::Options#as_json` was explicitly set, but the class included the `Enumerable` module. So, if you were using ActiveSupport Core Extensions, then the definition of `#as_json` for Enumerable was invoked, which would represent the `Config::Options` as a Array of key-value pairs instead of a Hash. This changes brings `#as_json` in line with the output we get from `to_json`: essentially, calling these methods on an instance of `Config::Options` behaves the same as if they were called instead on the hash returned by `to_hash`.
- Loading branch information
Showing
3 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters