Skip to content

Commit

Permalink
Don't set default mode (#669)
Browse files Browse the repository at this point in the history
* Don't set default mode
  • Loading branch information
ohler55 committed Jul 3, 2021
1 parent cd6920f commit d463301
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# CHANGELOG

## 3.11.8 - 2021-07-03

- Fixed or reverted change that set the default mode when optimize_Rails was called.

## 3.11.7 - 2021-06-22

- Fixed exception type when parsing after `Oj::Rails.mimic_JSON` is called.
Expand Down
3 changes: 2 additions & 1 deletion ext/oj/rails.c
Expand Up @@ -828,7 +828,8 @@ rails_mimic_json(VALUE self) {
json = rb_define_module("JSON");
}
oj_mimic_json_methods(json);
oj_default_options.mode = RailsMode;
// Setting the default mode breaks the prmoise in the docs not to.
//oj_default_options.mode = RailsMode;

return Qnil;
}
Expand Down

0 comments on commit d463301

Please sign in to comment.