search for: ext_row

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

Did you mean: next_row
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: MyExtended...