Sha256: a87794aa86406d0fbb77f7d66ae9ca89e964a6fe60b467dba94980cf6d1fb80e
Contents?: true
Size: 486 Bytes
Versions: 3
Compression:
Stored size: 486 Bytes
Contents
class BaseAction < ::Aldous::ControllerAction def default_view_data { current_user: current_user, current_ability: current_ability, } end def preconditions [Shared::EnsureUserNotDisabledPrecondition] end def default_error_handler(error) Defaults::ServerErrorView end def current_user @current_user ||= FindCurrentUserService.perform(session).user end def current_ability @current_ability ||= Ability.new(current_user) end end
Version data entries
3 entries across 3 versions & 1 rubygems