Sha256: 2975422ef64142b090afed125215aa0d3d6ddb8f5679b59ebb3b5ecfee1461d6
Contents?: true
Size: 531 Bytes
Versions: 3
Compression:
Stored size: 531 Bytes
Contents
module Sufia::Controller extend ActiveSupport::Concern included do # Adds Hydra behaviors into the application controller include Hydra::Controller::ControllerBehavior end def current_ability user_signed_in? ? current_user.ability : super end # Override Devise method to redirect to dashboard after signing in def after_sign_in_path_for(_resource) sufia.dashboard_index_path end protected ### Hook which is overridden in Sufia::Ldap::Controller def has_access? true end end
Version data entries
3 entries across 3 versions & 1 rubygems