Hi Pete,

class Foo
  include Reloadable::Subclasses
end

class Bar < Foo
end

Bar will be reloaded on each request, while the superclass Foo will not.

Regards,
Trevor
--
Trevor Squires
http://somethinglearned.com



On 3-Apr-06, at 11:43 PM, Pete Yandell wrote:

Let me sharpen up my first question, because I think it's essential no matter how you approach this:

If I have a class that includes Reloadable, how can I declare a class variable (or equivalent thereof) that persists across reloads of the class?

Cheers,

Pete Yandell
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to