Forum: Ferret How do you use acts_as_ferret without rails?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5f400e38a8ed574db5f5afa60f373470?d=identicon&s=25 Hh Hh (henry74)
on 2006-12-31 04:21
I am currently using activerecord without rails and I'd like to use the
acts_as_ferret plugin as it works well with activerecord.

How do I take advantage of the acts_as_ferret without rails installed?

Is this possible?  If someone could provide me with direction on how
this would be done, that would be greatly appreciated.

I assume that since active record works without rails that all the
acts_as plugins     would work as well...

Thanks in advance to all response.

1c2737f395a0c70124bca79081d4e8e0?d=identicon&s=25 Ewout Van Troostenberghe (Guest)
on 2006-12-31 13:48
(Received via mailing list)
At first sight, you would just need to require acts_as_ferret/lib/

This file will do

ActiveRecord::Base.class_eval do
  include FerretMixin::Acts::ARFerret

and thus merge the acts_as_ferret code into the ActiveRecord base class.
This topic is locked and can not be replied to.