Skip to content

Commit

Permalink
Monkey patch devise default scope loading for the time being to achie…
Browse files Browse the repository at this point in the history
…ve working generic authentication (thank you hassox for the fix)
  • Loading branch information
Petteri Kääpä authored and sferik committed Sep 17, 2010
1 parent 9152b9c commit db06979
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/dummy_app/config/initializers/devise.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
module Devise
class FailureApp
def scope
@scope ||= warden_options[:scope] || Devise.default_scope
end
end
end

# Use this hook to configure devise mailer, warden hooks and so forth. The first
# four configuration values can also be set straight in your models.
Devise.setup do |config|
Expand Down

0 comments on commit db06979

Please sign in to comment.