Displaying 1 result from an estimated 1 matches for "mystrategi".
Did you mean:
mystrategy
2006 Mar 10
3
Changes to class caching between Rails 0.14.3 and 1.0?
Hi all,
We''re having a rather unique problem with class caching. We are
implementing the strategy pattern in the following manner:
1. Set an accessor for the class, let''s call it :strategy
class Widget
cattr_accessor :strategy
end
2. In environment.rb, we instantiate an object that implements the
strategy and use the accessor to set it for the class
strat =