module DogBiscuits::ExtendedSolrDocument

Public Instance Methods

attribute(name, type, field) click to toggle source
# File lib/dog_biscuits/models/concerns/extended_solr_document.rb, line 10
def attribute(name, type, field)
  define_method name do
    type.coerce(self[field])
  end
end
solr_name(*args) click to toggle source
# File lib/dog_biscuits/models/concerns/extended_solr_document.rb, line 16
def solr_name(*args)
  ActiveFedora.index_field_mapper.solr_name(*args)
end