Class: Symphonia::AdminController
Instance Method Summary
collapse
#admin_require, #authorize, #back_url, #current_user, #current_user_session, #handle_unverified_request, #login_require, #menu_item, #redirect_back_or_default, #redirect_to_referer_or, #render_403, #render_404, #render_api_head, #render_api_ok, #set_default_locale, #set_locale, #store_location
Instance Method Details
5
6
7
8
9
10
11
12
|
# File 'app/controllers/symphonia/admin_controller.rb', line 5
def index
@admin_modules = AdminModule.where(user_id: [nil, current_user.id]).order(:position).all
@modules_count = @admin_modules.count
respond_to do |format|
format.html
end
end
|
#test_mail ⇒ Object
14
15
16
17
18
|
# File 'app/controllers/symphonia/admin_controller.rb', line 14
def test_mail
Notifier.test_mail(current_user.id).deliver_later
redirect_to symphonia.root_path, notice: 'Test mail'
end
|