about summary refs log tree commit diff stats
path: root/app/models
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-03-04 22:47:31 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2025-03-04 22:47:31 -0500
commitf3e3735c7efe9ba8fcc0e58cda4ee3996e12d38e (patch)
treed1913cb1ff747d9202ff9efb34a4e12c982163b6 /app/models
parent49c58dc5de3688d842025b83cbc91a69ef621641 (diff)
downloadthoughts-f3e3735c7efe9ba8fcc0e58cda4ee3996e12d38e.tar.gz
thoughts-f3e3735c7efe9ba8fcc0e58cda4ee3996e12d38e.tar.bz2
thoughts-f3e3735c7efe9ba8fcc0e58cda4ee3996e12d38e.zip
Add quotes search
Diffstat (limited to 'app/models')
-rw-r--r--app/models/quote.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/models/quote.rb b/app/models/quote.rb index 3301667..b1d25b4 100644 --- a/app/models/quote.rb +++ b/app/models/quote.rb
@@ -36,4 +36,13 @@ class Quote < ApplicationRecord
36 def has_tags? 36 def has_tags?
37 !tags.empty? 37 !tags.empty?
38 end 38 end
39
40 def self.ransackable_attributes(auth_object = nil)
41 ["content", "notes"]
42 end
43
44 def self.ransackable_associations(auth_object = nil)
45 []
46 end
47
39end 48end