Initial commit
This commit is contained in:
14
app/serializers/deserializable_note.rb
Normal file
14
app/serializers/deserializable_note.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user