Skip to content

Commit 49a7387

Browse files
committed
Merge pull request #593 from richa/rails-5-compatibility
replaced each_key method for rails 5 compatibility
2 parents 3a49314 + d713463 commit 49a7387

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jsonapi/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def verify_permitted_params(params, allowed_fields)
514514
params.each do |key, value|
515515
case key.to_s
516516
when 'relationships'
517-
value.each_key do |links_key|
517+
value.keys.each do |links_key|
518518
unless formatted_allowed_fields.include?(links_key.to_sym)
519519
params_not_allowed.push(links_key)
520520
unless JSONAPI.configuration.raise_if_parameters_not_allowed

0 commit comments

Comments
 (0)