Module: ActiveFedora::Querying

Included in:
Base, File
Defined in:
lib/active_fedora/querying.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



6
7
8
9
# File 'lib/active_fedora/querying.rb', line 6

def self.extended(base)
  base.class_attribute :solr_query_handler
  base.solr_query_handler = 'standard'
end

Instance Method Details

#default_sort_paramsObject



11
12
13
14
# File 'lib/active_fedora/querying.rb', line 11

def default_sort_params
  [ActiveFedora.index_field_mapper.solr_name('system_create', :stored_sortable, type: :date) +
    ' asc']
end