2014-11-10 22:10:41 -08:00
|
|
|
class InboxController < ApplicationController
|
2014-11-11 10:53:25 -08:00
|
|
|
before_filter :authenticate_user!
|
|
|
|
|
2014-11-10 22:10:41 -08:00
|
|
|
def show
|
2015-02-12 13:09:11 -08:00
|
|
|
@inbox = Inbox.where(user: current_user).order(:created_at).reverse_order.paginate(page: params[:page])
|
|
|
|
respond_to do |format|
|
|
|
|
format.html
|
|
|
|
format.js
|
|
|
|
end
|
2014-11-10 22:10:41 -08:00
|
|
|
end
|
|
|
|
end
|