remove the limit 3 for @photos in photo controller

This commit is contained in:
mokus 2013-08-08 12:34:13 +02:00
parent 44d76fc6da
commit 8df8855ac0

View file

@ -14,7 +14,7 @@ class PhotosController < ApplicationController
def index
@post_type = :photos
@person = Person.find_by_guid(params[:person_id])
@photos = Photo.where(author_id: @person.id).limit(3).order('created_at desc')
@photos = Photo.where(author_id: @person.id).order('created_at desc')
if @person
@contact = current_user.contact_for(@person)