2012-07-19 21:31:57 +00:00
|
|
|
class RecentViewedController < ApplicationController
|
|
|
|
before_filter :authentication_check
|
|
|
|
|
|
|
|
# GET /recent_viewed
|
|
|
|
def recent_viewed
|
2012-07-23 22:22:23 +00:00
|
|
|
recent_viewed = History.recent_viewed_fulldata(current_user)
|
2012-07-19 21:31:57 +00:00
|
|
|
|
|
|
|
# return result
|
2012-07-23 22:22:23 +00:00
|
|
|
render :json => recent_viewed
|
2012-07-19 21:31:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|