mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Upgrade to rubocop ~> 0.40.0
This commit is contained in:
parent
f2f747edda
commit
d900b09f8d
2
Gemfile
2
Gemfile
@ -48,6 +48,6 @@ group :test do
|
|||||||
end
|
end
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'rubocop', '~> 0.39.0', require: false
|
gem 'rubocop', '~> 0.40.0', require: false
|
||||||
gem 'yard', require: false
|
gem 'yard', require: false
|
||||||
end
|
end
|
||||||
|
|||||||
@ -431,7 +431,8 @@ module ActiveModelSerializers
|
|||||||
def relationships_for(serializer, requested_associations)
|
def relationships_for(serializer, requested_associations)
|
||||||
include_directive = JSONAPI::IncludeDirective.new(
|
include_directive = JSONAPI::IncludeDirective.new(
|
||||||
requested_associations,
|
requested_associations,
|
||||||
allow_wildcard: true)
|
allow_wildcard: true
|
||||||
|
)
|
||||||
serializer.associations(include_directive).each_with_object({}) do |association, hash|
|
serializer.associations(include_directive).each_with_object({}) do |association, hash|
|
||||||
hash[association.key] = Relationship.new(
|
hash[association.key] = Relationship.new(
|
||||||
serializer,
|
serializer,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user