Sha256: f06ea3d97a88df75f3065954b3133770dd55895f5c5b5a85c11c26124895498e

Contents?: true

Size: 290 Bytes

Versions: 33

Compression:

Stored size: 290 Bytes

Contents

class Users::MasqueradesController < Devise::MasqueradesController
  # Just an example showing how you would add authorization to devise_masquerade
  def show
    super
  end

  protected

  # Custom url redirect after masquerade
  def after_masquerade_path_for(resource)
    "/"
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
devise_masquerade-2.1.3 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-2.1.2 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-2.1.0 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-2.0.3 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-2.0.2 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-2.0.1 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-2.0.0 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.12 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.11 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.10 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.9 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.8 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.7 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.6 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.5 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.4 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.3 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.2 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.1 spec/dummy/app/controllers/users/masquerades_controller.rb
devise_masquerade-1.3.0 spec/dummy/app/controllers/users/masquerades_controller.rb