class WolfCore::ApplicationSerializer
def serialized_attributes
def serialized_attributes self.class._attributes.each_with_object({}) do |attribute, hash| hash[attribute] = if respond_to?(attribute, true) send(attribute) elsif object.respond_to?(attribute) object.public_send(attribute) end end end