Sha256: 474f681193199d5acebbbc52a1ac12c612d2070a27476d225d8cedef7ef111ec

Contents?: true

Size: 408 Bytes

Versions: 18

Compression:

Stored size: 408 Bytes

Contents

# Devise::FailureApp controls how warden hands unauthentiacted requests
# there's a bug in Devise 3.4.1 in this private method
# the fix is on master, yet is unreleased
# chances are this can be removed after the next Devise release
Devise::FailureApp.class_eval do
  def scope_url
    context = send(Devise.available_router_name)
    route = :"new_#{scope}_session_url"
    context.send(route, {})
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
fae-rails-3.0.0 config/initializers/devise_monkeypatch.rb
fae-rails-2.2.0 config/initializers/devise_monkeypatch.rb
fae-rails-2.1.0 config/initializers/devise_monkeypatch.rb
fae-railsz-2.1.0 config/initializers/devise_monkeypatch.rb
fae-rails-2.0.0 config/initializers/devise_monkeypatch.rb
fae-rails-1.7.1 config/initializers/devise_monkeypatch.rb
fae-rails-1.7.0 config/initializers/devise_monkeypatch.rb
fae-rails-1.6.0 config/initializers/devise_monkeypatch.rb
fae-rails-1.5.1 config/initializers/devise_monkeypatch.rb
fae-rails-1.5.0 config/initializers/devise_monkeypatch.rb
fae-rails-1.4.1 config/initializers/devise_monkeypatch.rb
fae-rails-1.4.0 config/initializers/devise_monkeypatch.rb
fae-rails-1.3.1 config/initializers/devise_monkeypatch.rb
fae-rails-1.3.0 config/initializers/devise_monkeypatch.rb
fae-rails-1.2.5 config/initializers/devise_monkeypatch.rb
fae-rails-1.2.4 config/initializers/devise_monkeypatch.rb
fae-rails-1.2.3 config/initializers/devise_monkeypatch.rb
fae-rails-1.2.2 config/initializers/devise_monkeypatch.rb