Class: Spotlight::Filter

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/spotlight/filter.rb

Overview

A configurable solr filter for the exhibit

Instance Method Summary collapse

Instance Method Details

#to_hashObject



8
9
10
11
12
# File 'app/models/spotlight/filter.rb', line 8

def to_hash
  return {} unless field

  { field => cast_value }
end