method

serialize

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: DurationSerializer
serialize(duration) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activejob/lib/active_job/serializers/duration_serializer.rb, line 6
      def serialize(duration)
        # Ideally duration.parts would be wrapped in an array before passing to Arguments.serialize,
        # but we continue passing the bare hash for backwards compatibility:
        super("value" => duration.value, "parts" => Arguments.serialize(duration.parts))
      end
Register or log in to add new notes.