Skip to content

Commit

Permalink
Adding pagination support
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed May 4, 2012
1 parent 97ab8e9 commit fdbe360
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/overrides/add_search_pagination.rb
@@ -0,0 +1,6 @@
Deface::Override.new(:virtual_path => "spree/shared/_products",
:name => "add_sunspot_search_pagination",
:replace => "code[erb-silent]:contains('if paginated_products.respond_to')",
:closing_selector => "code[erb-silent]:contains('end')",
:original => "<%= helper_method %>",
:text => "<%= paginate @searcher.sunspot.hits %>")

0 comments on commit fdbe360

Please sign in to comment.