Sha256: 46f2554f420e1be9132afce4aec54dd5eddf195c796faa9c2ed0690c94fbe2be

Contents?: true

Size: 285 Bytes

Versions: 2

Compression:

Stored size: 285 Bytes

Contents

module Headmin
  module Authentication
    extend ActiveSupport::Concern

    included do
      alias_method :devise_current_user, :current_user
      before_action :authenticate_admin!

      def current_user
        devise_current_user || current_admin
      end
    end



  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
headmin-0.1.2 app/controllers/concerns/headmin/authentication.rb
headmin-0.1.1 app/controllers/concerns/headmin/authentication.rb