Sha256: 36d2200335d01a481d68e4e7885f7a2926f1c9a09f51ddabfc6ec1b859bba0ae

Contents?: true

Size: 418 Bytes

Versions: 6

Compression:

Stored size: 418 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
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sufia-7.2.0 app/controllers/concerns/sufia/controller.rb
sufia-7.1.0 app/controllers/concerns/sufia/controller.rb
sufia-7.0.0 app/controllers/concerns/sufia/controller.rb
sufia-7.0.0.rc2 app/controllers/concerns/sufia/controller.rb
sufia-7.0.0.rc1 app/controllers/concerns/sufia/controller.rb
sufia-7.0.0.beta4 app/controllers/concerns/sufia/controller.rb