search for: my_extended_class

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

2006 Apr 01
1
STI with_scope on parent - bug or feature?
Hi, It seems that setting a with_scope on the parent class doesn''t do anything MyClass.with_scope(:find=>{:conditions=> ["somecol = ?", ''val'']}) do @ext_pages, @ext_rows = paginate :my_extended_class, { :per_page => 13 } end # this doesn''t generate WHERE somecol=''val'' In order for scope to work you have to call with_scope on the specialized class you''ll later call the find/paginate methods on, like this: MyExtendedClass.with_scope() Should I co...