Sha256: 2e55dc37bde5e723ca3e47ad852b032504bfab2d2000aa4ae49c6b4a71bf64e8

Contents?: true

Size: 534 Bytes

Versions: 4

Compression:

Stored size: 534 Bytes

Contents

module ActiveFedora
  module Querying
    delegate :find, :first, :exists?, :where, :limit, :offset, :order, :delete_all,
             :destroy_all, :count, :last, :search_with_conditions, :search_in_batches, :search_by_id, :find_each, to: :all

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active-fedora-15.0.1 lib/active_fedora/querying.rb
active-fedora-15.0.0 lib/active_fedora/querying.rb
active-fedora-14.0.1 lib/active_fedora/querying.rb
active-fedora-14.0.0 lib/active_fedora/querying.rb