mapping.rb revision dd257332b837f66515fb11c8d4f3b15fe712f7bf
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen KINDS = %w( import alignment view hiding minimization cofree free )
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen CONS_STATUSES = %w( inconsistent none cCons mcons mono def )
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen attr_accessible :iri, :source, :target, :kind, :theorem, :proven, :local,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen :inclusion, :logic_mapping, :parent, :ontology_id, :source_id,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen :target_id, :versions_attributes, :versions, :name
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen Mapping.where('ontology_id = ? OR source_id = ? OR target_id = ?',
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen self.mapping_version_id = to ? to.id : versions.current.id
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen "badge badge-success"
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen "badge badge-important"
9aa52288a4b53186d81b0ec9afa7d9e0a8ee8753Timo Sirainen "badge badge-inverse"