Sha256: 32895a64e807d81b0b7e8413eb3f2855e4a59ed2c03310f2c736f805b7c7d84f
Contents?: true
Size: 690 Bytes
Versions: 9
Compression:
Stored size: 690 Bytes
Contents
module Documentation class ApplicationController < ActionController::Base rescue_from Documentation::AccessDeniedError do |e| render :template => 'documentation/shared/access_denied', :layout => false end rescue_from ActiveRecord::RecordNotFound do |e| render :template => 'documentation/shared/not_found', :layout => false end before_filter do unless authorizer.can_use_ui? render :template => 'documentation/shared/not_found', :layout => false end end private def authorizer @authorizer ||= Documentation.config.authorizer.new(self) end helper_method :authorizer end end
Version data entries
9 entries across 9 versions & 2 rubygems