mirror of
https://github.com/samsonjs/grape-active_model_serializers.git
synced 2026-04-27 14:57:43 +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
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Support for `default_serializer_options`
|
||||||
|
|
||||||
|
```ruby
|
||||||
|
helper do
|
||||||
|
def default_serializer_options
|
||||||
|
{only: params[:only], except: params[:except]}
|
||||||
|
end
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
### current_user
|
### current_user
|
||||||
|
|
||||||
One of the nice features of ActiveModel::Serializers is that it
|
One of the nice features of ActiveModel::Serializers is that it
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue