Sha256: ab564f6b83cb147a0c15580abd7fc35a86beb9517086882b1c1f658cafb99641

Contents?: true

Size: 383 Bytes

Versions: 8

Compression:

Stored size: 383 Bytes

Contents

module Her
  class Collection
    def load_all_meta
      klass = a.first.class
      return unless klass.respond_to?(:id_and_buckets)
      id_attributes = klass.id_and_buckets.collect{|h| h[:id]}
      id_attributes.each do |attribute|
        id_attribute_values = self.collect(&attribute.to_sym)
        klass.mmemoized(attribute, id_attribute_values)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
looksist-0.1.3 lib/looksist/her_collection.rb
looksist-0.1.2 lib/looksist/her_collection.rb
looksist-0.1.1 lib/looksist/her_collection.rb
looksist-0.1.0 lib/looksist/her_collection.rb
looksist-0.0.8 lib/looksist/her_collection.rb
looksist-0.0.6 lib/looksist/her_collection.rb
looksist-0.0.5 lib/looksist/her_collection.rb
looksist-0.0.4 lib/looksist/her_collection.rb