Method: JSONAPI::Resource.updatable_fields
- Defined in:
- lib/jsonapi/resource.rb
.updatable_fields(_context = nil) ⇒ Object
Override in your resource to filter the updatable keys
576 577 578 |
# File 'lib/jsonapi/resource.rb', line 576 def updatable_fields(_context = nil) _updatable_relationships | _attributes.keys - [:id] end |