lib/enrichment_db/datum.rb in enrichment_db-0.1.8 vs lib/enrichment_db/datum.rb in enrichment_db-0.1.9

- old
+ new

@@ -1,8 +1,8 @@ require 'helper' class EnrichmentDb::Datum < EnrichmentDb::DatumModel - def self.by_id(schema_name, table_name, condition) + def self.by_lambda(schema_name, table_name, condition) puts "Finding object from #{table_name} with condition #{condition}." query = "SELECT * FROM #{schema_name}.#{table_name} where #{condition}" result = EnrichmentDb.request(schema_name, query).collect do |record| record