Sha256: 3b18ea320190be7553c98f0aaa534d5d1fff266fd315e08a5a3dc007ba52aeb1

Contents?: true

Size: 829 Bytes

Versions: 10

Compression:

Stored size: 829 Bytes

Contents

require 'devise'

require 'action_controller'
require 'action_controller/base'
require 'devise_masquerade/version'
require 'devise_masquerade/routes'
require 'devise_masquerade/controllers/helpers'
require 'devise_masquerade/controllers/url_helpers'
require 'devise_masquerade/rails'

module DeviseMasquerade
end

module Devise
  mattr_accessor :masquerade_param
  @@masquerade_param = 'masquerade'

  mattr_accessor :masquerade_expires_in
  @@masquerade_expires_in = 10.seconds

  mattr_accessor :masquerade_key_size
  @@masquerade_key_size = 16

  mattr_accessor :masquerade_bypass_warden_callback
  @@masquerade_bypass_warden_callback = false

  @@helpers << DeviseMasquerade::Controllers::Helpers
end

Devise.add_module :masqueradable, :controller => :masquerades, :model => 'devise_masquerade/model', :route => :masquerade

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
devise_masquerade-0.3.1 lib/devise_masquerade.rb
devise_masquerade-0.3.0 lib/devise_masquerade.rb
devise_masquerade-0.2.0 lib/devise_masquerade.rb
devise_masquerade-0.1.8 lib/devise_masquerade.rb
devise_masquerade-0.1.7 lib/devise_masquerade.rb
devise_masquerade-0.1.6 lib/devise_masquerade.rb
devise_masquerade-0.1.5 lib/devise_masquerade.rb
devise_masquerade-0.1.4 lib/devise_masquerade.rb
devise_masquerade-0.1.3 lib/devise_masquerade.rb
devise_masquerade-0.1.2 lib/devise_masquerade.rb