We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0976d03 commit 5ca393eCopy full SHA for 5ca393e
lib/jsonapi_compliable/base.rb
@@ -93,7 +93,7 @@ def forced_includes(data = nil)
93
94
def force_includes?
95
%w(PUT PATCH POST).include?(request.method) and
96
- raw_params[:data][:relationships].present?
+ raw_params.try(:[], :data).try(:[], :relationships).present?
97
end
98
99
module ClassMethods
0 commit comments