<< | Index | >>
Always data is broken by MiGel objects.
Again.
Plugin: ODDB::SwissmedicPlugin Error: NoMethodError Message: undefined method `include?' for #<ODDB::Migel::Item:0x00000039c08aa8> Backtrace: (eval):2:in `include?' /var/www/oddb.org/src/model/registration_observer.rb:15:in `add_registration' /var/www/oddb.org/src/model/registration.rb:312:in `replace_observer' /var/www/oddb.org/src/model/registration.rb:299:in `indication=' /var/www/oddb.org/src/util/persistence.rb:87:in `block in update_values' /var/www/oddb.org/src/util/persistence.rb:84:in `each' /var/www/oddb.org/src/util/persistence.rb:84:in `update_values' /var/www/oddb.org/src/util/persistence.rb:260:in `issue_update' /var/www/oddb.org/src/util/oddbapp.rb:125:in `block in update'
ch.oddb> indications.map{|i| i.registrations.first.class }.uniq -> undefined method `first' for #<ODDB::Migel::Item:0x0000000f9eec60>
strange result.
Sometimes this objects dose not apper.
ch.oddb> ic = indications.select{|i| i.registrations.class == ODDB::Migel::Item }.first; ic.class -> NilClass ch.oddb> ic = indications.select{|i| i.registrations.class == ODDB::Migel::Item }.first; ic.class -> ODDB::Indication
removed this Object.
Add Substances (comma separated) to instant search result.