Guest User

Untitled

a guest
Feb 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. diff --git a/lib/merb-auth/controller/controller.rb b/lib/merb-auth/controller/controller.rb
  2. index 56db895..b0f3375 100644
  3. --- a/lib/merb-auth/controller/controller.rb
  4. +++ b/lib/merb-auth/controller/controller.rb
  5. @@ -81,9 +81,10 @@ module MerbAuth
  6.  
  7. # Redirect to the URI stored by the most recent store_location call or
  8. # to the passed default.
  9. - def redirect_back_or_default(default,message = "")
  10. + def redirect_back_or_default(default,msg = "")
  11. loc = session[:return_to] || default
  12. session[:return_to] = nil
  13. + message[:notice] = msg
  14. redirect loc, message
  15. end
  16.  
  17. @@ -110,4 +111,4 @@ module MerbAuth
  18. end
  19. end # Helpers
  20. end# Controllers
  21. -end # MerbAuth
  22. \ No newline at end of file
Add Comment
Please, Sign In to add comment