Skip to content

Commit

Permalink
Fix undefined method `to_unsafe_h' for nil:NilClass
Browse files Browse the repository at this point in the history
Fixup 8f2a19a
  • Loading branch information
kreintjes authored and leikind committed Jan 18, 2017
1 parent 4bb139e commit f065b91
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/wice_grid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -574,11 +574,7 @@ def params #:nodoc:
end

def this_grid_params #:nodoc:
if params.respond_to?(:to_unsafe_h)
params[name].to_unsafe_h
else
params[name]
end
params[name].try(:to_unsafe_h) || params[name]
end

def resultset_without_paging_without_user_filters #:nodoc:
Expand Down

0 comments on commit f065b91

Please sign in to comment.