Sha256: 5d67ec9884321eac4f108fa41d61beca21e11a9aeb26812be9ed56f3e889c899

Contents?: true

Size: 428 Bytes

Versions: 6

Compression:

Stored size: 428 Bytes

Contents

module DeviseTokenAuth
  class Engine < ::Rails::Engine
    isolate_namespace DeviseTokenAuth
  end

  mattr_accessor :change_headers_on_each_request,
                 :token_lifespan,
                 :batch_request_buffer_throttle

  self.change_headers_on_each_request = true
  self.token_lifespan                 = 2.weeks
  self.batch_request_buffer_throttle  = 5.seconds

  def self.setup(&block)
    yield self
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
devise_token_auth-0.1.20 lib/devise_token_auth/engine.rb
devise_token_auth-0.1.19.alpha4 lib/devise_token_auth/engine.rb
devise_token_auth-0.1.19.alpha3 lib/devise_token_auth/engine.rb
devise_token_auth-0.1.19.alpha2 lib/devise_token_auth/engine.rb
devise_token_auth-0.1.19.alpha1 lib/devise_token_auth/engine.rb
devise_token_auth-0.1.18 lib/devise_token_auth/engine.rb