Skip to content

Commit

Permalink
Merge pull request #112 from flant/fix_strip-query
Browse files Browse the repository at this point in the history
Fix strip query error 'undefined method `strip' for nil:NilClass'
  • Loading branch information
diafour authored Nov 20, 2018
2 parents 3b6ef78 + 2bf6ebb commit c22ac71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def version
private

def query_from_params
LoghouseQuery.new(name: params[:name], query: params[:query].strip.to_s, namespaces: params[:namespaces])
LoghouseQuery.new(name: params[:name], query: params[:query].to_s.strip, namespaces: params[:namespaces])
.time_params(format: params[:time_format], from: params[:time_from], to: params[:time_to],
seek_to: params[:seek_to])

Expand Down

0 comments on commit c22ac71

Please sign in to comment.