Skip to content

Instantly share code, notes, and snippets.

Yash Doshi ydoshi91

Block or report user

Report or block ydoshi91

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View symbol_serializer.rb
# 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
You can’t perform that action at this time.