Adding support of searching has_many_associations