Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prefering psych as the yaml parser if possible, fixing assertions for…
… YAML 1.1 compatibility
- Loading branch information
1 parent
2570c85
commit 7642b75
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
activesupport/lib/active_support/core_ext/big_decimal/conversions.rb
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
require 'bigdecimal' | ||
|
||
begin | ||
require 'psych' | ||
rescue LoadError | ||
end | ||
|
||
require 'yaml' | ||
|
||
class BigDecimal | ||
|
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