Sha256: 2e46baa1804d280f39325f58a28e631e663f1207a2c2f35fae9423a2c77ad238

Contents?: true

Size: 425 Bytes

Versions: 4

Compression:

Stored size: 425 Bytes

Contents

module SimpleAdmin
  module Admin
    class ApplicationController < ActionController::Base
      layout 'simple_admin'

      before_action :authenticate_user!

      def current_user
        # TODO: Add authenticated user here
        raise NotImplementedError
      end

      private

      def authenticate_user!
        # TODO: Add authentication logic here
        raise NotImplementedError
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple-admin-0.2.0.pre.alpha app/controllers/simple_admin/admin/application_controller.rb
simple-admin-0.1.2.pre.alpha app/controllers/simple_admin/admin/application_controller.rb
simple-admin-0.1.1.pre.alpha app/controllers/simple_admin/admin/application_controller.rb
simple-admin-0.1.0.pre.alpha app/controllers/simple_admin/admin/application_controller.rb