Edge Rails currently has a bug / misfeature regarding around filters
which don't yield, the intention is to support cases like this:

around_filter :authorization_required

def authorization_required
  if logged_in?
    yield
  else
    redirect_to authentication_url
  end
end

I personally use this idiom, but I'm interested in hearing from anyone
else who does, and what issues they've struck with the current
edge-filters.

-- 
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