demarches-normaliennes/app/serializers/logic_serializer.rb
2023-03-30 10:51:20 +02:00

13 lines
188 B
Ruby

class LogicSerializer
def self.load(logic)
if logic.present?
Logic.from_h(logic)
end
end
def self.dump(logic)
if logic.present?
logic.to_h
end
end
end