Sha256: 471c96720575d2110c4f4d03b34289bf19034e9d1c2c1008ed24b6f69af3eaf6

Contents?: true

Size: 430 Bytes

Versions: 4

Compression:

Stored size: 430 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 lib/generators/templates/application_controller.rb
simple-admin-0.1.2.pre.alpha lib/generators/templates/application_controller.rb
simple-admin-0.1.1.pre.alpha lib/generators/templates/application_controller.rb
simple-admin-0.1.0.pre.alpha lib/generators/templates/application_controller.rb