mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
0f33d70e89
Previously, calling `::JSON.{generate,dump}` sometimes causes unexpected failures such as intridea/multi_json#86. `::JSON.{generate,dump}` now bypasses the ActiveSupport JSON encoder completely and yields the same result with or without ActiveSupport. This means that it will **not** call `as_json` and will ignore any options that the JSON gem does not natively understand. To invoke ActiveSupport's JSON encoder instead, use `obj.to_json(options)` or `ActiveSupport::JSON.encode(obj, options)`. |
||
---|---|---|
.. | ||
cache | ||
concurrency | ||
core_ext | ||
dependencies | ||
deprecation | ||
inflector | ||
json | ||
locale | ||
log_subscriber | ||
multibyte | ||
notifications | ||
testing | ||
values | ||
xml_mini | ||
all.rb | ||
backtrace_cleaner.rb | ||
benchmarkable.rb | ||
builder.rb | ||
cache.rb | ||
callbacks.rb | ||
concern.rb | ||
configurable.rb | ||
core_ext.rb | ||
dependencies.rb | ||
deprecation.rb | ||
descendants_tracker.rb | ||
duration.rb | ||
file_update_checker.rb | ||
file_watcher.rb | ||
gzip.rb | ||
hash_with_indifferent_access.rb | ||
i18n.rb | ||
i18n_railtie.rb | ||
inflections.rb | ||
inflector.rb | ||
json.rb | ||
key_generator.rb | ||
lazy_load_hooks.rb | ||
log_subscriber.rb | ||
logger.rb | ||
logger_silence.rb | ||
message_encryptor.rb | ||
message_verifier.rb | ||
multibyte.rb | ||
notifications.rb | ||
number_helper.rb | ||
option_merger.rb | ||
ordered_hash.rb | ||
ordered_options.rb | ||
per_thread_registry.rb | ||
proxy_object.rb | ||
rails.rb | ||
railtie.rb | ||
rescuable.rb | ||
string_inquirer.rb | ||
subscriber.rb | ||
tagged_logging.rb | ||
test_case.rb | ||
time.rb | ||
time_with_zone.rb | ||
version.rb | ||
xml_mini.rb |