Sha256: d3f7079d4a3f1dfdf2b50be453f1258b0430a1fdcd4f0b220502ffb6aa3831d2

Contents?: true

Size: 429 Bytes

Versions: 28

Compression:

Stored size: 429 Bytes

Contents

# -*- encoding : utf-8 -*-
module RailsConnector
  class BlobMapping < RailsConnector::AbstractModel
    def self.exists?
      self.table_exists?
    end

    def self.get_fingerprint(name)
      find_by_blob_name(name).fingerprint
    end

    def self.get_fingerprint_map(blob_names)
      Hash[self.where(:blob_name => blob_names).select([:blob_name, :fingerprint]).map {|b| [b.blob_name, b.fingerprint] }]
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
infopark_reactor-1.26.1 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.26.0 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.25.2 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.25.1 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.25.0 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.24.1 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.24.0 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.23.1 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.23.0 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.23.0.beta2 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.22.6 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.22.5 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.22.4 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.22.3 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.22.2 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.22.1 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.22.0 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.21.0 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.20.4 app/models/rails_connector/blob_mapping.rb
infopark_reactor-1.20.3 app/models/rails_connector/blob_mapping.rb