Updated PreviewCard, Group search_for functions to return max 25
• Updated: - PreviewCard, Group search_for functions to return max 25
This commit is contained in:
@@ -57,7 +57,7 @@ class PreviewCard < ApplicationRecord
|
||||
end
|
||||
|
||||
class << self
|
||||
def search_for(term, limit = 100, offset = 0)
|
||||
def search_for(term, limit = 25, offset = 0)
|
||||
pattern = '%' + sanitize_sql_like(term.strip) + '%'
|
||||
|
||||
PreviewCard.where(
|
||||
|
||||
Reference in New Issue
Block a user