mirror of
https://github.com/samsonjs/grape-active_model_serializers.git
synced 2026-03-25 08:45:55 +00:00
update README.
This commit is contained in:
parent
a2578f893d
commit
28de380fc2
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
|
@ -109,6 +109,16 @@ get "/homes"
|
|||
end
|
||||
```
|
||||
|
||||
### Support for `default_serializer_options`
|
||||
|
||||
```ruby
|
||||
helper do
|
||||
def default_serializer_options
|
||||
{only: params[:only], except: params[:except]}
|
||||
end
|
||||
end
|
||||
```
|
||||
|
||||
### current_user
|
||||
|
||||
One of the nice features of ActiveModel::Serializers is that it
|
||||
|
|
|
|||
Loading…
Reference in a new issue