Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Display only activated images

  • Loading branch information...
commit 9f5e7e7e67c707880b02575173fb5b47cb732b47 1 parent c5d79d4
@marcgg authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/controllers/front_controller.rb
View
2  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 }
Please sign in to comment.
Something went wrong with that request. Please try again.