mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
Upgrade to rubocop ~> 0.40.0
This commit is contained in:
@@ -431,7 +431,8 @@ module ActiveModelSerializers
|
||||
def relationships_for(serializer, requested_associations)
|
||||
include_directive = JSONAPI::IncludeDirective.new(
|
||||
requested_associations,
|
||||
allow_wildcard: true)
|
||||
allow_wildcard: true
|
||||
)
|
||||
serializer.associations(include_directive).each_with_object({}) do |association, hash|
|
||||
hash[association.key] = Relationship.new(
|
||||
serializer,
|
||||
|
||||
Reference in New Issue
Block a user