aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorjpl2017-02-08 17:54:48 +0100
committerjpl2017-02-08 17:54:48 +0100
commit2cfafe1c03e9ca1b18e16333d54b91d6e05922a3 (patch)
tree12e2edc578f95b5a29f17151631bff1595881668 /app/helpers
parent4d29cd1e8dddce08731b7962491d864fdfe0f8f6 (diff)
downloadchouette-core-2cfafe1c03e9ca1b18e16333d54b91d6e05922a3.tar.bz2
Refs #2482: updating referentials#show with new layout
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/pagination_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb
index e604d47c3..ea5902d63 100644
--- a/app/helpers/pagination_helper.rb
+++ b/app/helpers/pagination_helper.rb
@@ -20,7 +20,8 @@ module PaginationHelper
end
def new_pagination collection, cls = nil
- pinfos = page_entries_info collection, model: t("will_paginate.page_entries_info.#{collection.first.class.name.downcase}"), html: false
+ k = collection.first.class.name.split('::').last.downcase
+ pinfos = page_entries_info collection, model: t("will_paginate.page_entries_info.#{k}"), html: false
if collection.total_pages > 1
links = content_tag :div, '', class: 'page_links' do