Commit 3a19e016 by liyijie

fix: 修复size的错误

parent 00d79320
...@@ -143,7 +143,7 @@ class SimpleController::BaseController < ::InheritedResources::Base ...@@ -143,7 +143,7 @@ class SimpleController::BaseController < ::InheritedResources::Base
def excel_class_name def excel_class_name
unless @excel_class_name.present? unless @excel_class_name.present?
resource_class_name_arr = self.resource_class.name.split('::') resource_class_name_arr = self.resource_class.name.split('::')
if resource_class_name_arr > 1 if resource_class_name_arr.size > 1
@excel_class_name = ( resource_class_name_arr.insert(1, 'Excel') ).join('::') @excel_class_name = ( resource_class_name_arr.insert(1, 'Excel') ).join('::')
else else
@excel_class_name = ( resource_class_name_arr.insert(0, 'Excel') ).join('::') @excel_class_name = ( resource_class_name_arr.insert(0, 'Excel') ).join('::')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment