Sha256: 7396755ffed21372cb6563db349d0e3dd6fb496728c5c6885d5a966af8f807ad
Contents?: true
Size: 407 Bytes
Versions: 1
Compression:
Stored size: 407 Bytes
Contents
module Helena class ApplicationController < ::ApplicationController helper Helena::Engine.helpers helper_method :can_administer? def authenticate_administrator fail(ActionController::RoutingError, 'Access Denied') unless can_administer? end def add_breadcrumb(name, path = nil, options = {}) super(name.presence || t('shared.untitled'), path, options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
helena-0.3.3 | app/controllers/helena/application_controller.rb |