-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional options to :has_one/:has_many #65
Comments
I think you might be misunderstanding, |
@fotinakis I know this) I actually try to understand process and make PR for add this functionality. But fail =( |
Can you use This is an undocumented feature because it is not quite complete yet. We need to get https://github.com/fotinakis/jsonapi-serializers/pull/53/files in first. Let me know if that will solve your problem. |
@fotinakis not fully understand, how I can provide |
@fotinakis Sorry for disturbing, can you help? |
Hey @Jesterovskiy, sorry I don't totally understand what the goal is here. I think |
@fotinakis try to explain my relationships: In my opinion, if I can in CategorySerializer add |
@fotinakis Hello =) |
Hi. I want to pass additional options for
has_one
relations. In https://github.com/fotinakis/jsonapi-serializers/blob/master/lib/jsonapi-serializers/attributes.rb#L58 when make debug I seeparent_name
hash inoptions
, but in https://github.com/fotinakis/jsonapi-serializers/blob/master/lib/jsonapi-serializers/serializer.rb#L174attr_data[:options]
is empty. Maybe I something misunderstood =(My sample code:
Controller
Serialisers
The text was updated successfully, but these errors were encountered: