We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9854e96 commit e248903Copy full SHA for e248903
README.md
@@ -193,7 +193,7 @@ Many other formatting and customizations are possible by overriding any of the f
193
# Override this to customize the JSON:API "id" for this object.
194
# Always return a string from this method to conform with the JSON:API spec.
195
def id
196
- object.id.to_s
+ object.slug.to_s
197
end
198
```
199
```ruby
@@ -202,7 +202,7 @@ end
202
# per the spec naming recommendations: http://jsonapi.org/recommendations/#naming
203
# For example, 'MyApp::LongCommment' will become the 'long-comments' type.
204
def type
205
- object.class.name.demodulize.tableize.dasherize
+ 'long-comments'
206
207
208
0 commit comments