demarches-normaliennes/app/serializers/logic_serializer.rb

14 lines
188 B
Ruby
Raw Normal View History

2023-03-24 11:10:39 +01:00
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