Use resourceful routes for web mailboxes
This commit is contained in:
parent
99af52b478
commit
c7e038a4d0
21 changed files with 205 additions and 153 deletions
10
app/controllers/messages/muted_inboxes_controller.rb
Normal file
10
app/controllers/messages/muted_inboxes_controller.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
module Messages
|
||||
class MutedInboxesController < MailboxesController
|
||||
# Display the list of muted messages received by the user.
|
||||
def show
|
||||
@title = t ".title"
|
||||
|
||||
redirect_to messages_inbox_path if current_user.muted_messages.none?
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue