Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

kludge will_paginate

  • Loading branch information...
commit c3d70a7329239f297f6b9f2d2a76997703a2154e 1 parent 720205b
@parndt authored
Showing with 14 additions and 4 deletions.
  1. +4 −4 Gemfile.lock
  2. +10 −0 config/initializers/spreefinery.rb
View
8 Gemfile.lock
@@ -63,7 +63,7 @@ GIT
GIT
remote: git://github.com/spree/spree.git
- revision: f71e91bd4b39a328e5b79aeeca3ddeec94518b08
+ revision: bb22be1e53cd9cc405ed4e0512b1fa3e68cd86f7
specs:
spree (1.1.0.beta)
spree_api (= 1.1.0.beta)
@@ -92,7 +92,7 @@ GIT
kaminari (>= 0.13.0)
meta_search (= 1.1.2)
nested_set (= 1.6.8)
- paperclip (= 2.5.0)
+ paperclip (~> 2.6.0)
rails (>= 3.1.1, <= 3.2.1)
state_machine (= 1.1.2)
stringex (~> 1.3.0)
@@ -217,12 +217,12 @@ GEM
orm_adapter (0.0.6)
paper_trail (2.6.0)
rails (~> 3)
- paperclip (2.5.0)
+ paperclip (2.6.0)
activerecord (>= 2.3.0)
activesupport (>= 2.3.2)
cocaine (>= 0.0.2)
mime-types
- pg (0.12.2)
+ pg (0.13.1)
polyamorous (0.5.0)
activerecord (~> 3.0)
polyglot (0.3.3)
View
10 config/initializers/spreefinery.rb
@@ -0,0 +1,10 @@
+if defined?(WillPaginate)
+ module WillPaginate
+ module ActiveRecord
+ module RelationMethods
+ alias_method :per, :per_page
+ alias_method :num_pages, :total_pages
+ end
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.