diff options
| author | jpl | 2016-10-05 14:28:36 +0200 |
|---|---|---|
| committer | jpl | 2016-10-05 14:28:36 +0200 |
| commit | 1ad2d20af7cc2d9a7a5fab8375967565a12ef505 (patch) | |
| tree | a7335925c133862401d33083d84ca410ee0beb76 /app/helpers/pagination_helper.rb | |
| parent | f4885c9ad9091712a85e47beede17b4712377259 (diff) | |
| download | chouette-core-1ad2d20af7cc2d9a7a5fab8375967565a12ef505.tar.bz2 | |
update company views with table builder (helper)
Diffstat (limited to 'app/helpers/pagination_helper.rb')
| -rw-r--r-- | app/helpers/pagination_helper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/pagination_helper.rb b/app/helpers/pagination_helper.rb index c0e28ab56..e373629af 100644 --- a/app/helpers/pagination_helper.rb +++ b/app/helpers/pagination_helper.rb @@ -3,9 +3,9 @@ module PaginationHelper def paginated_content(models, default_partial_name = nil, options = {}) default_options = {:delete => true, :edit => true} options = default_options.merge(options) - - return "" if models.blank? - + + # return "" if models.blank? + html = "" models.each_slice(3) do |row_models| html += '<div class="row">' @@ -16,6 +16,6 @@ module PaginationHelper html += '</div>' end - html.html_safe + return html.html_safe unless models.blank? end end |
