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



10
11
12
13
14
# File 'app/models/spotlight/filter.rb', line 10

def to_hash
  return {} unless field

  { field => cast_value }
end