Hi,
I got to thinking this morning about filters and how they are actually
implemented. If I was gonna implement it, I''d be tempted to do
something like this:
class Base
def perform_action
action_name
if self.class.responds_to?(action_name)
run_before_filters
run_around_filters { send(action_name) }
run_after_filters
else
# do other things
end
end
end
Now I see something like that in action_controller/base.rb, but I see
no mention of filters. It just calls send(action_name). Where do the
filters come in?
Thanks,
Ryan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---