Files
old-holivud2/app/serializers/deserializable_note.rb
2020-05-31 22:38:19 +02:00

15 lines
293 B
Ruby

class DeserializableNote < JSONAPI::Deserializable::Resource
Note.new.attributes.keys.each do |attr|
attribute attr.to_sym
end
end
class SerializableNote < JSONAPI::Serializable::Resource
type 'note'
Note.new.attributes.keys.each do |attr|
attribute attr.to_sym
end
end