trabajo-afectivo/app/controllers/recent_viewed_controller.rb

12 lines
267 B
Ruby
Raw Normal View History

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)
# return result
2012-07-23 22:22:23 +00:00
render :json => recent_viewed
end
end