Respond_to? in acts_as_ferret results

acts_as_ferret’s search results use #method_missing to forward method
calls to the underlying result object. However, those methods are
represented in #respond_to?

Here’s a simple fix for that:

module FerretMixin
module Acts
module ARFerret
class SearchResults
def respond_to?(name)
self.methods.include?(name) || @results.respond_to?(name)
end
end
end
end
end

thanks

-ryan

fixed in trunk, thanks!

Jens

On Mon, Aug 14, 2006 at 02:20:53PM -0700, Ryan K. wrote:

    def respond_to?(name)

-ryan


Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk


webit! Gesellschaft für neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer [email protected]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs