12 lines
203 B
Ruby
12 lines
203 B
Ruby
class Admin::BaseController < ApplicationController
|
|
|
|
before_action :authenticate_user!
|
|
before_action :authorize_admin
|
|
before_action :set_context
|
|
|
|
def set_context
|
|
@context = :admin
|
|
end
|
|
|
|
end
|