Skip to content

Commit

Permalink
Description settings search
Browse files Browse the repository at this point in the history
  • Loading branch information
stejskalleos committed Oct 30, 2023
1 parent b8e2e05 commit fa922bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/setting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,18 @@ def validate(record)

scoped_search :on => :id, :complete_enabled => false, :only_explicit => true, :validator => ScopedSearch::Validators::INTEGER
scoped_search on: :name, complete_value: :true, operators: ['=', '~']
scoped_search on: :description, operators: ['~'], ext_method: :search_description

delegate :settings_type, :encrypted, :encrypted?, :default, to: :setting_definition, allow_nil: true

def self.config_file
'settings.yaml'
end

def self.search_description(_key, _operator, _value)
{}
end

# can't use our own settings
def self.per_page
20
Expand Down

0 comments on commit fa922bd

Please sign in to comment.