Initial commit
This commit is contained in:
9
app/serializers/serializable_note.rb
Normal file
9
app/serializers/serializable_note.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class SerializableNote < JSONAPI::Serializable::Resource
|
||||
type 'note'
|
||||
|
||||
Note.new.attributes.keys.each do |attr|
|
||||
attribute attr.to_sym
|
||||
end
|
||||
|
||||
attribute :email
|
||||
end
|
||||
Reference in New Issue
Block a user