Class: My::MessagesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/my/messages_controller.rb

Instance Method Summary collapse

Instance Method Details

#dialogObject

get /my/messages/:user_slug



10
11
12
13
# File 'app/controllers/my/messages_controller.rb', line 10

def dialog
  set_interlocutor
  @collection = UserMessage.dialog_page(current_user, @interlocutor, current_page)
end

#indexObject

get /my/messages



5
6
7
# File 'app/controllers/my/messages_controller.rb', line 5

def index
  @collection = UserMessage.page_for_owner(current_user, current_page)
end