Method: Note::SKOS::ChangeNote.single_query
- Defined in:
- app/models/note/skos/change_note.rb
.single_query(params = {}) ⇒ Object
28 29 30 31 32 33 34 |
# File 'app/models/note/skos/change_note.rb', line 28 def self.single_query(params = {}) query_str = build_query_string(params) scope = includes(:annotations) scope = merge(Note::Annotated::Base.where(Note::Annotated::Base.arel_table[:value].matches(query_str))) scope.map { |result| SearchResult.new(result) } end |