aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/refinery
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2011-08-25 13:57:59 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2011-08-25 13:57:59 +0300
commit36affef45e8b402471040d2c7d099f8e3ff7f91d (patch)
treec8b8c022cde387d7b9d277371b0aaafe0ee1d044 /app/models/refinery
parent6b73469c1a0864551f4b9e6bb8b40c84abf201f5 (diff)
downloadrefinerycms-blog-36affef45e8b402471040d2c7d099f8e3ff7f91d.tar.gz
refinerycms-blog-36affef45e8b402471040d2c7d099f8e3ff7f91d.tar.bz2
refinerycms-blog-36affef45e8b402471040d2c7d099f8e3ff7f91d.zip
will_paginate is back.
Diffstat (limited to 'app/models/refinery')
-rw-r--r--app/models/refinery/blog_category.rb2
-rw-r--r--app/models/refinery/blog_post.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/refinery/blog_category.rb b/app/models/refinery/blog_category.rb
index c2c8c4c..3f10d92 100644
--- a/app/models/refinery/blog_category.rb
+++ b/app/models/refinery/blog_category.rb
@@ -18,7 +18,7 @@ module Refinery
end
# how many items to show per page
- paginates_per Refinery::Setting.find_or_set(:blog_posts_per_page, 10)
+ self.per_page = Refinery::Setting.find_or_set(:blog_posts_per_page, 10)
end
end
diff --git a/app/models/refinery/blog_post.rb b/app/models/refinery/blog_post.rb
index f4bccf1..4da083c 100644
--- a/app/models/refinery/blog_post.rb
+++ b/app/models/refinery/blog_post.rb
@@ -96,7 +96,7 @@ module Refinery
# how many items to show per page
def per_page
- paginates_per Refinery::Setting.find_or_set(:blog_posts_per_page, 10)
+ Refinery::Setting.find_or_set(:blog_posts_per_page, 10)
end
end