Skip to content

Commit

Permalink
Merge 8a3d533 into 6fe1d0a
Browse files Browse the repository at this point in the history
  • Loading branch information
merqlove committed Feb 15, 2016
2 parents 6fe1d0a + 8a3d533 commit cce958f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/lurker/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def self.build_from_action_dispatch(request)
path_info: request.path_info,
path_params: request.env["#{PREFIX}.path_parameters"].stringify_keys.except('format'),
query_params: request.env["#{PREFIX}.query_parameters"],
payload: request.env["#{PREFIX}.request_parameters"].merge(
request.env["#{PREFIX}.query_parameters"]
payload: request.env.fetch("#{PREFIX}.request_parameters", {}).merge(
request.env.fetch("#{PREFIX}.query_parameters", {})
).stringify_keys.except('action', "controller", 'format', '_method')
)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/lurker/spy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def extensions
path_info: request.path_info,
method: request.verb,
}
unless request.query_params.empty?
unless request.query_params.blank?
extensions[:query_params] = request.query_params
end
if suffix.present?
Expand Down

0 comments on commit cce958f

Please sign in to comment.