Sha256: bc0d7d59e4a1d68b32c467d66fabb29be81296a0ac20133d31a5f544b5b39f0a

Contents?: true

Size: 401 Bytes

Versions: 17

Compression:

Stored size: 401 Bytes

Contents

require 'action_controller'
require 'simple_token_authentication/adapter'

module SimpleTokenAuthentication
  module Adapters
    class RailsAPIAdapter
      extend SimpleTokenAuthentication::Adapter

      def self.base_class
        ::ActionController::API
      end
    end

    # make the adpater available even if the 'API' acronym is not defined
    RailsApiAdapter = RailsAPIAdapter
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
simple_token_authentication-1.18.1 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.18.0 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.17.0 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.16.0 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.15.1 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.15.0 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.14.0 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.13.0 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.12.0 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.11.0 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.10.1 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.10.0 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.9.1 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.9.0 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.8.0 lib/simple_token_authentication/adapters/rails_api_adapter.rb
stn-simple_token_authentication-1.7.1 lib/simple_token_authentication/adapters/rails_api_adapter.rb
simple_token_authentication-1.7.0 lib/simple_token_authentication/adapters/rails_api_adapter.rb