search for: included_actions

Displaying 1 result from an estimated 1 matches for "included_actions".

2006 Apr 25
2
Bug in Rails 1.1 implementation of before_filters
...caches their value the first time they''re called, their return value is out of date if more filters are added. A workaround is to bypass the cache and use read_inheritable_attribute("before_filters") instead of before_filters. Similarly, use read_inheritable_attribute("included_actions") instead of included_actions. This is bad because now my code is tied to an implementation detail which would normally be hidden. Incidentally, the same bug also occurs in after_filters and excluded_actions. Cheers, Graham -- Posted via http://www.ruby-forum.com/.