Skip to content

Commit 6249695

Browse files
committed
Merge pull request #329 from cerebris/readme_fetchable_fields
Update readme section on fetchable_fields.
2 parents 4c2c561 + e1640f7 commit 6249695

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,16 @@ class AuthorResource < JSONAPI::Resource
102102

103103
def fetchable_fields
104104
if (context.current_user.guest)
105-
super(context) - [:email]
105+
super - [:email]
106106
else
107-
super(context)
107+
super
108108
end
109109
end
110110
end
111111
```
112112

113-
Context flows through from the controller and can be used to control the attributes based on the current user (or other
114-
value).
113+
Context flows through from the controller to the resource and can be used to control the attributes based on the
114+
current user (or other value).
115115

116116
##### Creatable and Updatable Attributes
117117

0 commit comments

Comments
 (0)