Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment