Skip to content

Commit fa15dba

Browse files
committed
added missing YARD to Tag#search class method
1 parent 20c7b93 commit fa15dba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/models/tag.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ class Tag < ApplicationRecord
1818
validate :synonym_unique
1919
validates :name, uniqueness: { scope: [:tag_set_id], case_sensitive: false }
2020

21+
# Fuzzy-searches tags by name, excerpt, and synonym name
22+
# @param term [String] search term
23+
# @return [ActiveRecord::Relation<Tag>]
2124
def self.search(term)
2225
value = "%#{sanitize_sql_like(term.strip)}%"
2326

0 commit comments

Comments
 (0)