Sha256: f9f7fe59d3ad1ae1baada2c52de3baaeb8336bdd5e20291eac2011883e95196a

Contents?: true

Size: 468 Bytes

Versions: 17

Compression:

Stored size: 468 Bytes

Contents

module ExvoAuth::Controllers::Rails
  def self.included(base)
    base.send :include, ExvoAuth::Controllers::Base
    base.send :include, InstanceMethods
    base.helper_method :current_user, :signed_in?, :sign_up_path, :sign_in_path
  end
    
  module InstanceMethods    
    protected
    
    def request_method
      request.request_method
    end
    
    def basic_authentication_method_name
      :authenticate_or_request_with_http_basic
    end    
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
exvo_auth-0.16.5 lib/exvo_auth/controllers/rails.rb
exvo_auth-0.16.4 lib/exvo_auth/controllers/rails.rb
exvo_auth-0.16.3 lib/exvo_auth/controllers/rails.rb
exvo_auth-0.16.2 lib/exvo_auth/controllers/rails.rb
exvo_auth-0.16.1 lib/exvo_auth/controllers/rails.rb
exvo_auth-0.16.0 lib/exvo_auth/controllers/rails.rb
exvo_auth-0.15.1 lib/exvo_auth/controllers/rails.rb
exvo_auth-0.15.0 lib/exvo_auth/controllers/rails.rb
exvo-auth-0.14.1 lib/exvo_auth/controllers/rails.rb
exvo-auth-0.14.0 lib/exvo_auth/controllers/rails.rb
exvo-auth-0.13.0 lib/exvo_auth/controllers/rails.rb
exvo-auth-0.12.2 lib/exvo_auth/controllers/rails.rb
exvo-auth-0.12.1 lib/exvo_auth/controllers/rails.rb
exvo-auth-0.12.0 lib/exvo_auth/controllers/rails.rb
exvo-auth-0.11.2 lib/exvo_auth/controllers/rails.rb
exvo-auth-0.11.1 lib/exvo_auth/controllers/rails.rb
exvo-auth-0.11.0 lib/exvo_auth/controllers/rails.rb