Module: ActiveFedora::Calculations
- Included in:
 - Relation
 
- Defined in:
 - lib/active_fedora/relation/calculations.rb
 
Instance Method Summary collapse
- 
  
    
      #count(*args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Get a count of the number of objects from solr Takes :conditions as an argument.
 
Instance Method Details
#count(*args) ⇒ Object
Get a count of the number of objects from solr Takes :conditions as an argument
      5 6 7 8 9 10 11 12  | 
    
      # File 'lib/active_fedora/relation/calculations.rb', line 5 def count(*args) return (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  |