ElMassimo / ElMassimo/oj_serializers
Can't name has_one associated ':options'
Open
- Dominant language
- Ruby
- Stars
- 166
- Forks
- 9
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 2
Description
`has_one :options` doesn't seem to work—however, as a workaround, the following does work:
```ruby
class MyThingSerializer < Oj::Serializer
has_one :_options, as: :options, serializer: MyFancyOptionsSerializer do
my_thing.options
end
end
```
Any ideas behind the source of this strange behaviour?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.