# Problem with Adge ActsAsFerret

**URL:** <https://www.ruby-forum.com/t/problem-with-adge-actsasferret/154093>\
**Category:** Ferret\
**Created:** [November 25, 2008, 10:29am UTC](https://www.ruby-forum.com/t/problem-with-adge-actsasferret/154093 "2008-11-25T10:29:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![capi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/bbce88/32.png) [@capi](https://www.ruby-forum.com/u/capi)\
**Post date:** [November 25, 2008, 10:29am UTC](https://www.ruby-forum.com/t/problem-with-adge-actsasferret/154093/1 "2008-11-25T10:29:44Z")

</div>

Hi guys!

We try use ActsAsFerret from trunk  
But shit happen!

We create singel index for multi models like in  
[http://www.ruby-forum.com/topic/167953#new](http://www.ruby-forum.com/topic/167953#new)  
When we use Local index all work good.  
But when work with Drb Server with singel index it`s work very strange  
Whot he do: when we set params page & per\_page in ferret\_options not in  
ar\_options  
he fetch all records that hi found!  
but with Local Index All right.

I go to source ActsAsFerret and see that for multi model search use  
late\_pagination(after fetching all records for all models)  
hi send message for index index.shared?  
With local Index index.shared? return true  
But with Drb Server index.shared? return false  
What is Shet?

I deep in source and so  
method shared? of Class Index check  
index\_definition[:registered\_models].size \> 1

when i define index all models put in  
index\_definition[:registered\_models] \<\< clazz Thats true for  
LOCAL\_INDEX only  
When i use Drb serv i dont anderstand how models registerd  
thats sorce code from ferret\_server  
def register\_class(class\_name)  
@logger.debug “############ registerclass #{class\_name}”  
class\_name.constantize  
@logger.debug “index for class #{class\_name}:  
#{ActsAsFerret::ferret\_indexes[class\_name.underscore.to\_sym]}”

```
  end

```

I dont anderstand why registerd process send rend request to Drb server  
but asking index.shared? don send to Drb and looking to  
index\_definition[:registered\_models].size \> 1  
as for LOCAL\_INDEX

Now i try install ferret from trun!  
May be some one cat comment this please help!  
Thanks!
