Skip to content
Browse files

Changed RecentPostsSidebar#recent_posts to work under postgresql

  • Loading branch information...
1 parent cb27288 commit b050b24f9bda5a0a6ad1538b25c04edf7367065b @jzellman committed Jul 30, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/recentposts_sidebar.rb
View
4 lib/recentposts_sidebar.rb
@@ -6,7 +6,7 @@ class RecentPostsSidebar < Sidebar
setting :post_length, 150, :label => "Size of the post to be displayed"
def recent_posts
- @recent_posts = Article.find(:all, :conditions => "published = 1", :order => 'published_at DESC', :limit => count)
+ @recent_posts = Article.find(:all, :conditions => ["published = ?", true], :order => 'published_at DESC', :limit => count)
end
-end
+end

0 comments on commit b050b24

Please sign in to comment.
Something went wrong with that request. Please try again.