aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/serializers.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix error message about unknown `ActiveJob` argument serializerbogdanvlviv2018-02-171-1/+1
|
* Fix docs of ActiveJob custom argument serializersbogdanvlviv2018-02-171-6/+6
| | | | | | Add `:nodoc:` to `ActiveJob::Serializers` Add `:doc:` to `ActiveJob::Serializers::ObjectSerializer#klass` Express `ActiveJob::Serializers::ObjectSerializer#klass` as private method
* Add argument serializer `TimeWithZoneSerializer`bogdanvlviv2018-02-171-1/+3
| | | | | The serializer serializes an instance of `ActiveSupport::TimeWithZone`. The serializer deserializes value to `ActiveSupport::TimeWithZone` if possible.
* Fix custome serializer settingYuji Yaginuma2018-02-161-1/+1
| | | | | | | | The serializer should be set up in `after_initialize` so that it work properly even if the user specifies serializer with initializers. Also, since `custom_serializers` is `Array`, it needs to be flattened before setting the value.
* Simplify the implementation of custom argument serializersRafael Mendonça França2018-02-141-54/+7
| | | | | | | | | | | | | We can speed up things for the supported types by keeping the code in the way it was. We can also avoid to loop trough all serializers in the deserialization by trying to access the class already in the Hash. We could also speed up the custom serialization if we define the class that is going to be serialized when registering the serializers, but that will remove the possibility of defining a serialzer for a superclass and have the subclass serialized using it.
* Add serializers for Time, Date and DateTimeRafael Mendonça França2018-02-141-1/+7
|
* Add symbol and duration serializersRafael Mendonça França2018-02-141-1/+5
|
* Only add one more custom key in the serialized hashRafael Mendonça França2018-02-141-15/+22
| | | | | | | Now custom serialziers can register itself in the serialized hash using the "_aj_serialized" key that constains the serializer name. This way we can avoid poluting the hash with many reserved keys.
* Simplify the implementation of custom serialziersRafael Mendonça França2018-02-141-35/+27
| | | | | Right now it is only possible to define serializers globally so we don't need to use a class attribute in the job class.
* Remove non-default serializersEvgenii Pecherkin2018-02-141-15/+6
|
* Introduce serializers to ActiveJobEvgenii Pecherkin2018-02-141-0/+109