Sha256: f8c180cc620b31ba55e3fa9fad8acd9970730ffd41eee465566be704bf0c69c4

Contents?: true

Size: 388 Bytes

Versions: 18

Compression:

Stored size: 388 Bytes

Contents

module Errdo
  class ApplicationController < ::ApplicationController

    before_action :_authenticate!
    before_action :_authorize!

    def _current_user
      instance_eval(&Errdo.current_user_method)
    end

    private

    def _authenticate!
      instance_eval(&Errdo.authenticate_with)
    end

    def _authorize!
      instance_eval(&Errdo.authorize_with)
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
errdo-0.12.7 app/controllers/errdo/application_controller.rb
errdo-0.12.6 app/controllers/errdo/application_controller.rb
errdo-0.12.5 app/controllers/errdo/application_controller.rb
errdo-0.12.4 app/controllers/errdo/application_controller.rb
errdo-0.12.3 app/controllers/errdo/application_controller.rb
errdo-0.12.2 app/controllers/errdo/application_controller.rb
errdo-0.12.1 app/controllers/errdo/application_controller.rb
errdo-0.12.0 app/controllers/errdo/application_controller.rb
errdo-0.11.6 app/controllers/errdo/application_controller.rb
errdo-0.11.5 app/controllers/errdo/application_controller.rb
errdo-0.11.4 app/controllers/errdo/application_controller.rb
errdo-0.11.3 app/controllers/errdo/application_controller.rb
errdo-0.11.2 app/controllers/errdo/application_controller.rb
errdo-0.11.1 app/controllers/errdo/application_controller.rb
errdo-0.11.0 app/controllers/errdo/application_controller.rb
errdo-0.10.0 app/controllers/errdo/application_controller.rb
errdo-0.9.1 app/controllers/errdo/application_controller.rb
errdo-0.9.0 app/controllers/errdo/application_controller.rb