Permalink
Browse files

Display only activated images

  • Loading branch information...
1 parent c5d79d4 commit 9f5e7e7e67c707880b02575173fb5b47cb732b47 @marcgg committed Feb 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/front_controller.rb
@@ -19,7 +19,7 @@ def about
end
def most_recent
- @photos = Photo.where(["category_id IN (?)", @portfolio.categories.map(&:id)]).limited.ordered_by_date
+ @photos = Photo.where(["category_id IN (?)", @portfolio.categories.map(&:id)]).limited.activated.ordered_by_date
respond_to do |format|
format.html
format.rss { render :layout => false }

0 comments on commit 9f5e7e7

Please sign in to comment.