diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-03-04 22:47:31 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-03-04 22:47:31 -0500 |
| commit | f3e3735c7efe9ba8fcc0e58cda4ee3996e12d38e (patch) | |
| tree | d1913cb1ff747d9202ff9efb34a4e12c982163b6 /app/models | |
| parent | 49c58dc5de3688d842025b83cbc91a69ef621641 (diff) | |
| download | thoughts-f3e3735c7efe9ba8fcc0e58cda4ee3996e12d38e.tar.gz thoughts-f3e3735c7efe9ba8fcc0e58cda4ee3996e12d38e.tar.bz2 thoughts-f3e3735c7efe9ba8fcc0e58cda4ee3996e12d38e.zip | |
Add quotes search
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/quote.rb | 9 |
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 | |||
| 39 | end | 48 | end |
