Module: GlobalIdHelper

Defined in:
lib/vendor/global_id_helper.rb

Overview

A middle-layer wrapper between Sqed and TaxonWorks

Class Method Summary (collapse)

Class Method Details

+ (Array of Strings) ids_by_class_name(global_ids, class_name)

Returns the ids of strings from mixed

Returns:

  • (Array of Strings)

    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