Use resourceful routes for web mailboxes
This commit is contained in:
parent
99af52b478
commit
c7e038a4d0
21 changed files with 205 additions and 153 deletions
12
app/controllers/messages/mailboxes_controller.rb
Normal file
12
app/controllers/messages/mailboxes_controller.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
module Messages
|
||||
class MailboxesController < ApplicationController
|
||||
layout "site"
|
||||
|
||||
before_action :authorize_web
|
||||
before_action :set_locale
|
||||
|
||||
authorize_resource :class => Message
|
||||
|
||||
before_action :check_database_readable
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue