diff options
| author | jpl | 2017-02-14 18:47:22 +0100 |
|---|---|---|
| committer | jpl | 2017-02-14 18:47:22 +0100 |
| commit | e49b165161462716d9afda0cad986456483fe2c8 (patch) | |
| tree | 7587bc4cba8f3e2bfc7a4d0813078908e7437405 /app | |
| parent | bbcb181145858f148c4eb5bcd8ed9e06582c535e (diff) | |
| download | chouette-core-e49b165161462716d9afda0cad986456483fe2c8.tar.bz2 | |
fixing i18n issues, updating pagination helper
Diffstat (limited to 'app')
| -rw-r--r-- | app/helpers/pagination_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb index ea5902d63..350d796ea 100644 --- a/app/helpers/pagination_helper.rb +++ b/app/helpers/pagination_helper.rb @@ -20,8 +20,8 @@ module PaginationHelper end def new_pagination collection, cls = nil - k = collection.first.class.name.split('::').last.downcase - pinfos = page_entries_info collection, model: t("will_paginate.page_entries_info.#{k}"), html: false + k = collection.first.class + pinfos = page_entries_info collection, model: k, html: false if collection.total_pages > 1 links = content_tag :div, '', class: 'page_links' do |
