diff options
Diffstat (limited to 'activejob/lib/active_job/serializers')
-rw-r--r-- | activejob/lib/active_job/serializers/base_serializer.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/activejob/lib/active_job/serializers/base_serializer.rb b/activejob/lib/active_job/serializers/base_serializer.rb index 98f7852fd6..8b891cca48 100644 --- a/activejob/lib/active_job/serializers/base_serializer.rb +++ b/activejob/lib/active_job/serializers/base_serializer.rb @@ -7,6 +7,24 @@ module ActiveJob def serialize?(argument) argument.is_a?(klass) end + + def deserialize?(_argument) + raise NotImplementedError + end + + def serialize(_argument) + raise NotImplementedError + end + + def deserialize(_argument) + raise NotImplementedError + end + + private + + def klass + raise NotImplementedError + end end end end |