Sha256: 6b28800c522026c4370ec4cfe866491f4cc31536531c525ec59735d2e4e195be

Contents?: true

Size: 730 Bytes

Versions: 9

Compression:

Stored size: 730 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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
devise_masquerade-0.1.1 lib/devise_masquerade.rb
devise_masquerade-0.1.0 lib/devise_masquerade.rb
devise_masquerade-0.0.9 lib/devise_masquerade.rb
devise_masquerade-0.0.8 lib/devise_masquerade.rb
devise_masquerade-0.0.7 lib/devise_masquerade.rb
devise_masquerade-0.0.6 lib/devise_masquerade.rb
devise_masquerade-0.0.5 lib/devise_masquerade.rb
devise_masquerade-0.0.4 lib/devise_masquerade.rb
devise_masquerade-0.0.3 lib/devise_masquerade.rb