Module: Vendor::GlobalIdHelper
- Defined in:
- lib/vendor/global_id_helper.rb
Overview
A middle-layer wrapper between Sqed and TaxonWorks
Class Method Summary collapse
- 
  
    
      .ids_by_class_name(global_ids, class_name)  ⇒ Array of Strings 
    
    
  
  
  
  
  
  
  
  
  
    The ids of strings from mixed. 
Class Method Details
.ids_by_class_name(global_ids, class_name) ⇒ Array of Strings
Returns the ids of strings from mixed.
| 6 7 8 | # File 'lib/vendor/global_id_helper.rb', line 6 def self.ids_by_class_name(global_ids, class_name) global_ids.select{|i| i.model_class.base_class.name == class_name}.map(&:model_id) end |