app/models/record_revision.rb
# ====Params
# string concept_id,
# string revision_id
# ====Returns
# Record || nil
# ==== Method
# Queries the DB and returns a record matching params
# if no record is found, returns nil.
Params
string concept_id,
string revision_id
Returns
Record || nil
Method
Queries the DB and returns a record matching params
if no record is found, returns nil.
Params string concept_id string revision_id Returns Record || nil Method Queries the DB and returns a record matching params if no record is found returns nil .
def find_record(concept_id, revision_id)
    record = nil
    collection = self.find_by concept_id: concept_id
    unless collection.nil?
      record = collection.records.where(revision_id: revision_id).where.not(state: Record::STATE_HIDDEN).first
    end
    return record
  end
def find_record ( concept_id , revision_id ) record = nil collection = self . find_by concept_id : concept_id unless collection . nil? record = collection . records . where ( revision_id : revision_id ) . where . not ( state : Record :: STATE_HIDDEN ) . first end return record end
Params
string concept_id,
string revision_id
Returns
Record || nil
 Method
Queries the DB and returns a record matching params
if no record is found, returns nil.
Params string concept_id string revision_id Returns Record || nil Method Queries the DB and returns a record matching params if no record is found returns nil .
concept_id
<not_specific>
revision_id
<not_specific>