Sha256: c98d44f9880a763a1d16629daebe5b8c2ed4f4ec45e8c707eb9b9c030e10b1e0
Contents?: true
Size: 403 Bytes
Versions: 76
Compression:
Stored size: 403 Bytes
Contents
module ActiveFedora module Calculations # Get a count of the number of objects from solr # Takes :conditions as an argument def count(*args) return apply_finder_options(args.first).count if args.any? opts = {} opts[:rows] = limit_value if limit_value opts[:sort] = order_values if order_values SolrService.count(create_query(where_values)) end end end
Version data entries
76 entries across 76 versions & 1 rubygems