mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-15 16:13:38 +08:00
Check to see if the param is a hash in table utils
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user