Sha256: fbed3422da59bce02aea4f1134e2d9cc3beb1e78c0349955837c57fd585eba9c
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
module Admin class ApplicationController < ::ApplicationController layout "admin" include Admin::ActionController include Admin::CommonActions include ApplicationHelper helper_method :scope, :model, :decorator, :record, :decorate, :records, :render_to_string before_action :authenticate_user! before_action do if current_user.user? or current_user.role.blank? render :file => "public/403.html", :status => :unauthorized, :layout => false end end before_action do prepend_view_path 'app/views/admin/application' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sofav-0.2.0 | app/controllers/application_controller.rb |