Added default limit to self.recent_viewed_fulldata().
This commit is contained in:
parent
1d805d13db
commit
303e960c5b
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue