This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Serializing Symbols for ActiveJobs | |
# For the context of this gist, serialization of symbols simply means deconstruction of symbols into serializable hash. | |
# include in any ActiveJob where you need to pass symbol(s) in arguments | |
# Deconstructs any symbol into a standard and discernible Hash, which can be serialized | |
# Example- :apples => { _serializing_datatype: 'Symbol', _value: 'apples' } | |
module SymbolSerializer | |
extend ActiveSupport::Concern | |
included do |