demarches-normaliennes/app/serializers/logic_serializer.rb

16 lines
219 B
Ruby
Raw Normal View History

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