Created
August 9, 2008 18:37
-
-
Save cilquirm/4695 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/merb-auth/controller/controller.rb b/lib/merb-auth/controller/controller.rb | |
index 56db895..b0f3375 100644 | |
--- a/lib/merb-auth/controller/controller.rb | |
+++ b/lib/merb-auth/controller/controller.rb | |
@@ -81,9 +81,10 @@ module MerbAuth | |
# Redirect to the URI stored by the most recent store_location call or | |
# to the passed default. | |
- def redirect_back_or_default(default,message = "") | |
+ def redirect_back_or_default(default,msg = "") | |
loc = session[:return_to] || default | |
session[:return_to] = nil | |
+ message[:notice] = msg | |
redirect loc, message | |
end | |
@@ -110,4 +111,4 @@ module MerbAuth | |
end | |
end # Helpers | |
end# Controllers | |
-end # MerbAuth | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment