From ae7ebd6c702a990c354c374cb15528a7e8651e27 Mon Sep 17 00:00:00 2001 From: Mark Rickert Date: Sat, 13 Sep 2014 16:13:14 -0500 Subject: [PATCH] Check to see if the param is a hash in table utils --- lib/ProMotion/table/table_utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ProMotion/table/table_utils.rb b/lib/ProMotion/table/table_utils.rb index 61a3a61..522d7b7 100644 --- a/lib/ProMotion/table/table_utils.rb +++ b/lib/ProMotion/table/table_utils.rb @@ -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