> What happens to old code that goes:
>
>     redirect_to foo_url and return if foo.nil?
>
> Does it break? Or does it now work just like:
>
>     redirect_to foo_url if foo.nil?
>

Because the original code redirects, the filter chain is halted.  The
return won't do any harm, it will just have no effect.


-- 
Cheers

Koz

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to