app/helpers/kuppayam_helper.rb in kuppayam-0.1.34 vs app/helpers/kuppayam_helper.rb in kuppayam-0.1.35
- old
+ new
@@ -19,15 +19,19 @@
# <%= content_tag :div, :class=>"pull-right" do %>
# <%= paginate @projects, :remote => true %>
# <% end %>
# <% end %>
# <div class="cl"></div>
+ # paginate @meta_tags , params: { controller: "dhatu/meta_tags", action: 'index', page_id: @page.id }, remote: true
# ---------------------------
- def paginate_kuppayam(collection, remote=true)
+ def paginate_kuppayam(collection, **options)
+ options.reverse_merge!(
+ remote: true
+ )
return "" if collection.empty?
clear_tag(10) +
content_tag(:div, :class=>"pull-right") do
- paginate(collection, :remote => remote)
+ paginate(collection, options)
end +
clear_tag(10)
end
# theme_search_form is a helper to create a form to filter the results by entering a search query