diff options
author | Jeff Shumate <jeff@catapulsion.net> | 2012-02-22 21:00:45 -0700 |
---|---|---|
committer | Jeff Shumate <jeff@catapulsion.net> | 2012-02-22 21:00:45 -0700 |
commit | 602759af1b89438435c59bffb10e2cbe4c60f834 (patch) | |
tree | c7a1480a8e4bffbf661b295f79fbb9cc62cb0e54 /app | |
parent | 4f0b5f8223426644924807fc38f86ec245f4827b (diff) | |
download | refinerycms-blog-602759af1b89438435c59bffb10e2cbe4c60f834.tar.gz refinerycms-blog-602759af1b89438435c59bffb10e2cbe4c60f834.tar.bz2 refinerycms-blog-602759af1b89438435c59bffb10e2cbe4c60f834.zip |
cleanup
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/refinery/blog/posts_controller.rb | 2 | ||||
-rw-r--r-- | app/models/refinery/blog/post.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/refinery/blog/posts_controller.rb b/app/controllers/refinery/blog/posts_controller.rb index 3309024..bde3a9c 100644 --- a/app/controllers/refinery/blog/posts_controller.rb +++ b/app/controllers/refinery/blog/posts_controller.rb @@ -24,7 +24,7 @@ module Refinery @canonical = url_for(:locale => ::Refinery::I18n.default_frontend_locale) if canonical? - @post.increment!(:access_count,1) + @post.increment!(:access_count, 1) respond_with (@post) do |format| format.html { present(@post) } diff --git a/app/models/refinery/blog/post.rb b/app/models/refinery/blog/post.rb index d114dff..522e000 100644 --- a/app/models/refinery/blog/post.rb +++ b/app/models/refinery/blog/post.rb @@ -80,7 +80,7 @@ module Refinery end def recent(count) - where("published_at <= ? and draft = ?", Time.now, false).limit(count) + live.limit(count) end def popular(count) |