Class: EmailDigest
- Inherits:
-
MLS::Model
- Object
- ActiveRecord::Base
- MLS::Model
- EmailDigest
- Defined in:
- lib/mls/models/email_digest.rb
Instance Method Summary collapse
Instance Method Details
#filter ⇒ Object
7 8 9 10 11 |
# File 'lib/mls/models/email_digest.rb', line 7 def filter filter_to_read = read_attribute(:filter) filter_to_read = search.filter if filter_to_read&.empty? && search JSON.parse (filter_to_read || {}).to_json, object_class: OpenStruct end |