Skip to content

Instantly share code, notes, and snippets.

@cilquirm
Created August 9, 2008 18:37
Show Gist options
  • Save cilquirm/4695 to your computer and use it in GitHub Desktop.
Save cilquirm/4695 to your computer and use it in GitHub Desktop.
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