Sha256: b78b41a61d2772285ddba5af8c29a411cc0b93b93b22b215bb72da932810468a
Contents?: true
Size: 443 Bytes
Versions: 2
Compression:
Stored size: 443 Bytes
Contents
module Hitchens class ApplicationController < ActionController::Base check_authorization layout Hitchens.use_parent_layout ? 'application' : 'hitchens/application' def current_ability # we need to tell CanCan to use our Hitchens::Ability class @current_ability ||= Ability.new(current_hitchens_user) end private def current_hitchens_user __send__ Hitchens.current_user_helper_name end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hitchens-0.0.3 | app/controllers/hitchens/application_controller.rb |
hitchens-0.0.2 | app/controllers/hitchens/application_controller.rb |