Added default limit to self.recent_viewed_fulldata().

This commit is contained in:
Martin Edenhofer 2012-10-18 21:29:56 +02:00
parent 1d805d13db
commit 303e960c5b

View file

@ -209,7 +209,7 @@ class History < ActiveRecord::Base
return datas
end
def self.recent_viewed_fulldata( user, limit )
def self.recent_viewed_fulldata( user, limit = 10 )
recent_viewed = History.recent_viewed( user, limit )
# get related users