I am running rails 2.2.2 and cannot upgrade to 2.3 at this time.

However, I would like to use a default_scope and so I have installed
the default_scope plugin.
This works great for standard AR classes but does not carry through
Single Table Inheritance without adding the default_scope declaration
to every class. Not very DRY

I was hoping someone could shed some light on the following
undocumented ActiveRecord method.

def scoped_methods #:nodoc:
   Thread.current[:"#{self}_scoped_methods"] ||= []
end

I am hoping I can make the following change without breaking anything.

def scoped_methods #:nodoc:
      Thread.current[:"#{self.base_class}_scoped_methods"] ||= []
end




--~--~---------~--~----~------------~-------~--~----~
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 [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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to