Upgrade to rubocop ~> 0.40.0

This commit is contained in:
Ben Mills 2016-06-01 09:21:29 -06:00
parent f2f747edda
commit d900b09f8d
No known key found for this signature in database
GPG Key ID: F362D7A1BB9F775F
2 changed files with 3 additions and 2 deletions

View File

@ -48,6 +48,6 @@ group :test do
end
group :development, :test do
gem 'rubocop', '~> 0.39.0', require: false
gem 'rubocop', '~> 0.40.0', require: false
gem 'yard', require: false
end

View File

@ -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,