Permalink
Browse files

issue #24

  • Loading branch information...
1 parent d913459 commit 085772e5c7ecebcefcda679cbd8c74f64196beec @rlisowski rlisowski committed Jan 31, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/controllers/devise/password_expired_controller.rb
@@ -1,11 +1,11 @@
-class Devise::PasswordExpiredController < ApplicationController
+class Devise::PasswordExpiredController < DeviseController
skip_before_filter :handle_password_change
prepend_before_filter :authenticate_scope!, :only => [:show, :update]
- include Devise::Controllers::InternalHelpers
+ include Devise::Controllers::Helpers
def show
if not resource.nil? and resource.need_change_password?
- render_with_scope :show
+ render 'devise/password_expired/show'
else
redirect_to :root
end
@@ -19,7 +19,7 @@ def update
redirect_to stored_location_for(scope) || :root
else
clean_up_passwords(resource)
- render_with_scope :show
+ render 'devise/password_expired/show'
end
end

0 comments on commit 085772e

Please sign in to comment.