mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
The following constants were renamed: ActiveModel::Serialization => ActiveModel::Serializable ActiveModel::Serializers::JSON => ActiveModel::Serializable::JSON ActiveModel::Serializers::Xml => ActiveModel::Serializable::XML The main motivation for such a change is that `ActiveModel::Serializers::JSON` was not actually a serializer, but a module that when included allows the target to be serializable to JSON. With such changes, we were able to clean up the namespace to add true serializers as the ArraySerializer.
14 lines
374 B
Ruby
14 lines
374 B
Ruby
module ActiveModel
|
|
module Serializers
|
|
module Xml
|
|
extend ActiveSupport::Concern
|
|
include ActiveModel::Serializable::XML
|
|
|
|
Serializer = ActiveModel::Serializable::XML::Serializer
|
|
|
|
included do
|
|
ActiveSupport::Deprecation.warn "ActiveModel::Serializers::Xml is deprecated in favor of ActiveModel::Serializable::XML"
|
|
end
|
|
end
|
|
end
|
|
end |