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 consider this a feature or a bug?
jeroen