demarches-normaliennes/app/serializers/logic_serializer.rb
2024-08-22 09:26:48 +02:00

15 lines
219 B
Ruby

# frozen_string_literal: true
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