Skip to content

Commit 9358bcc

Browse files
committed
Merge pull request #649 from Timmehs/patch-1
Sentence that seemd to be about file name convention said 'class name'
2 parents 2a7e1b1 + 5055eeb commit 9358bcc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ Or install it yourself as:
7676
Resources define the public interface to your API. A resource defines which attributes are exposed, as well as
7777
relationships to other resources.
7878

79-
Resource definitions should by convention be placed in a directory under app named resources, `app/resources`. The class
80-
name should be the single underscored name of the model that backs the resource with `_resource.rb` appended. For example,
79+
Resource definitions should by convention be placed in a directory under app named resources, `app/resources`. The file name should be the single underscored name of the model that backs the resource with `_resource.rb` appended. For example,
8180
a `Contact` model's resource should have a class named `ContactResource` defined in a file named `contact_resource.rb`.
8281

8382
#### JSONAPI::Resource

0 commit comments

Comments
 (0)