Class: EmailDigest

Inherits:
MLS::Model
  • Object
show all
Defined in:
lib/mls/models/email_digest.rb

Instance Method Summary collapse

Instance Method Details

#filterObject



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