shoedazzle/searchlogic — pull request #1 by gguthrie (2012-05-09 07:04:21+00:00)
Title: Polymorphic associations only fix

Don't match to methods that start with an underscore for models that only have polymorphic associations

This will prevent errors when calling Marshal.dump on an object that only has polymorphic associations when the polymorphic relation has been loaded.

Also for models that only have non-polymorphic associations where the method name is of the pattern _(\w+?)_type_(\w+) - this is unlikely but I included it for completeness.

/cc @spectator @kuinak @tmullen