[obs-commits] [openSUSE/open-build-service] 11bbca: [webui] Nasty ActiveXML collision between Project ...
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 11bbcab0e709dc08d337d1fe6ccdca31425b57d0 https://github.com/openSUSE/open-build-service/commit/11bbcab0e709dc08d337d1... Author: Sascha Peilicke <saschpe@suse.de> Date: 2012-01-23 (Mon, 23 Jan 2012) Changed paths: M src/webui/app/models/project_status.rb Log Message: ----------- [webui] Nasty ActiveXML collision between Project and ProjectStatus Both models have "handles_xml_element 'project'" set. The fun starts when you do a search for projects, like this: Collection.find(:what => 'project', :predicate => "@name='openSUSE:Factory'") Until now, the result was a Collection with ProjectStatus children because ActiveXML::LibXMLNode.get_class picks the first 'Model' that handles 'project'.
participants (1)
-
Sascha Peilicke