aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/lib/active_job/serializers/duration_serializer.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable `Layout/EmptyLinesAroundAccessModifier` copRyuta Kamizono2019-06-131-1/+0
| | | | | | | | | | | We sometimes say "✂️ newline after `private`" in a code review (e.g. https://github.com/rails/rails/pull/18546#discussion_r23188776, https://github.com/rails/rails/pull/34832#discussion_r244847195). Now `Layout/EmptyLinesAroundAccessModifier` cop have new enforced style `EnforcedStyle: only_before` (https://github.com/rubocop-hq/rubocop/pull/7059). That cop and enforced style will reduce the our code review cost.
* Simplify the implementation of custom argument serializersRafael Mendonça França2018-02-141-2/+2
| | | | | | | | | | | | | 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-0/+2
|
* Allow serializers to be used either as classes or objectsRafael Mendonça França2018-02-141-12/+10
|
* Add symbol and duration serializersRafael Mendonça França2018-02-141-0/+24
|
* Remove non-default serializersEvgenii Pecherkin2018-02-141-42/+0
|
* Introduce serializers to ActiveJobEvgenii Pecherkin2018-02-141-0/+42