1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/guides/source
Jon Moss 835246e622 Add note about JSON/JSONB serialization changes
The initial commit (efaa6e4f79) that changed this
behavior was intended to be a minor change, but ended up becoming a
large-ish breaking change within Active Record.

This is because instead of only JSON encoding `Hash`es or `Array`s in `#serialize`,
we now encode all values passed in. This is an issue if you're passing in a `String`,
that has already been transformed from a `Hash` to a `String`, since your data
is now being double encoded.

Unfortunately, the change was included in one of the v5.0.0 beta
releases, and it is too late to revert without huge ripple effects.
Thus, all we can do is update the documentation (via this commit), and
add some test coverage (coming soon in a PR) for the new behavior.

Please note that in the documentation I talk about deserialization, not
about serialization, where the actual change occurred. This is because
you won't notice any changes in serialized data until you try and
deserialize it. Also to make the change itself (confusing until you
read through everything multiple times) easier to understand.

Related #27788, #25594, #26101, #24234, #28292, #28285, #28285, and
probably others.

[ci skip]
2017-08-17 13:45:19 -04:00
..
kindle refactors and fixes in guides generation [ci skip] 2017-02-12 10:33:50 +01:00
2_2_release_notes.md
2_3_release_notes.md
3_0_release_notes.md
3_1_release_notes.md
3_2_release_notes.md
4_0_release_notes.md
4_1_release_notes.md
4_2_release_notes.md
5_0_release_notes.md [ci skip] Update Guides to use macOS instead of Mac OS X 2017-02-20 15:12:51 +01:00
5_1_release_notes.md Rails secrets is not built on but inspired by Sekrets 2017-05-02 10:17:08 -04:00
_license.html.erb
_welcome.html.erb Upgrade various Rails 5.0 references to 5.1 2017-03-25 11:45:46 -04:00
action_cable_overview.md [ci skip] Prefer cookies.encrypted over signed (#30129) 2017-08-07 22:32:03 -05:00
action_controller_overview.md Fix english for the rescue_from warning [ci skip] 2017-07-11 12:54:36 -04:00
action_mailer_basics.md [ci skip] Update action_mailer_basics.md 2017-08-08 11:23:20 +03:00
action_view_overview.md [ci skip]Remove options of javascript_link_tag and stylesheet_link_tag in guides 2017-07-14 10:01:55 +09:00
active_job_basics.md Make one line example fit on one line [ci skip] 2017-08-09 15:31:37 -04:00
active_model_basics.md [ci skip] Change ++ by markdown quotes 2017-04-08 14:11:36 +03:00
active_record_basics.md [ci skip] Updated language on validations. 2017-07-09 12:15:56 -04:00
active_record_callbacks.md Small grammar fixes 2017-08-16 10:41:25 -04:00
active_record_migrations.md Reword sentence 2017-04-19 15:40:25 -04:00
active_record_postgresql.md Change http postgresql.org links to https [ci skip] 2017-07-30 21:52:31 +09:00
active_record_querying.md Change http postgresql.org links to https [ci skip] 2017-07-30 21:52:31 +09:00
active_record_validations.md Remove obsolete explanation 2017-08-17 23:49:49 +09:00
active_support_core_extensions.md Add documentation for class_attribute options 2017-07-17 11:36:05 -03:00
active_support_instrumentation.md
api_app.md Update Rails API Application guide to match current code [ci skip] 2017-05-21 09:26:02 -05:00
api_documentation_guidelines.md We always + 1 to __LINE__ when class_evaling with << 2017-05-22 08:44:42 +09:00
asset_pipeline.md Fix asset pipeline guide [skip ci] 2017-08-14 17:15:34 -03:00
association_basics.md add missing collection.reload documentation [ci skip] 2017-08-08 17:22:15 -04:00
autoloading_and_reloading_constants.md Correct Autoloading and STI guide (issue #26994) 2017-04-06 10:30:33 +02:00
caching_with_rails.md Doc cleanup for caching guide [ci skip] (#28556) 2017-03-24 18:14:01 +05:30
command_line.md Fix guide about command_line [ci skip] 2017-08-15 06:31:48 +09:00
configuring.md Capitalize Rake 2017-08-06 22:54:23 -04:00
contributing_to_ruby_on_rails.md explain why guide translations need a fork [ci skip] 2017-05-14 21:29:34 +02:00
credits.html.erb
debugging_rails_applications.md Fix debugging rails application [ci skip] 2017-08-14 22:25:47 +09:00
development_dependencies_install.md [ci skip] Update fedora SQLite3 package name 2017-06-17 12:37:42 +02:00
documents.yaml Remove invalid entry from the guides index page 2017-06-06 17:36:02 +02:00
engines.md Add system_test logs to guide [ci skip] 2017-08-16 01:29:32 +09:00
form_helpers.md Merge pull request #28432 from marksiemers/master 2017-04-20 19:58:26 -04:00
generators.md Add system_test logs to guide [ci skip] 2017-08-16 01:29:32 +09:00
getting_started.md [ci skip] run migration before looking at schema 2017-06-30 16:27:00 +05:30
i18n.md Clarify i18n guide for how pluralization rules work by default 2017-07-07 23:10:23 -07:00
index.html.erb
initialization.md Replace Erubis with Erubi in a part of guide [ci skip] 2017-07-16 23:33:02 +09:00
layout.html.erb
layouts_and_rendering.md Add missing http status codes [ci skip] 2017-07-04 12:59:05 +09:00
maintenance_policy.md Update the maintenance policy [ci skip] 2017-03-20 15:04:57 -04:00
plugins.md Update guides/source/plugins.md [ci skip] 2017-08-15 09:47:29 +03:00
rails_application_templates.md Define path with __dir__ 2017-05-23 00:53:51 +03:00
rails_on_rack.md Update 'Rails on Rack' guide [ci skip] 2017-05-20 09:51:43 -05:00
routing.md Replaces the 17 for the actual call to params[:id] that would make the code work as intended. [ci skip] 2017-08-06 12:43:57 -03:00
ruby_on_rails_guides_guidelines.md document link processing in guides generation [ci skip] 2017-02-12 11:41:01 +01:00
security.md Remove period from within links 2017-08-16 10:33:53 -04:00
testing.md Fix testing guide [skip ci] 2017-08-14 23:57:50 +09:00
upgrading_ruby_on_rails.md Add note about JSON/JSONB serialization changes 2017-08-17 13:45:19 -04:00
working_with_javascript_in_rails.md Update working_with_javascript_in_rails.md 2017-08-01 14:53:17 -05:00