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. Cheers, Henry -- Posted via http://www.ruby-forum.com/.
Ewout Van Troostenberghe
2006-Dec-31 09:22 UTC
[Ferret-talk] How do you use acts_as_ferret without rails?
At first sight, you would just need to require acts_as_ferret/lib/ acts_as_ferret. This file will do ActiveRecord::Base.class_eval do include FerretMixin::Acts::ARFerret end and thus merge the acts_as_ferret code into the ActiveRecord base class.>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. > >Cheers, >Henry > >-- >Posted via http://www.ruby-forum.com/. >_______________________________________________ >Ferret-talk mailing list >Ferret-talk at rubyforge.org >http://rubyforge.org/mailman/listinfo/ferret-talk