mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Update serializers.md
This commit is contained in:
parent
afe3c93807
commit
dcc7af925d
@ -78,7 +78,7 @@ def cached_blog
|
||||
end
|
||||
```
|
||||
|
||||
``ruby
|
||||
```ruby
|
||||
has_one :blog, if: :show_blog?
|
||||
|
||||
def show_blog?
|
||||
|
||||
Loading…
Reference in New Issue
Block a user