Check to see if the param is a hash in table utils

This commit is contained in:
Mark Rickert
2014-09-13 16:13:14 -05:00
parent 0b060149e1
commit ae7ebd6c70

View File

@@ -2,7 +2,7 @@ module ProMotion
module Table
module Utils
def index_path_to_section_index(params)
if params[:index_path]
if params.is_a?(Hash) && params[:index_path]
params[:section] = params[:index_path].section
params[:index] = params[:index_path].row
end