Sha256: 1957e7ea0a853a6e8fa5370240f59e487b5327d1575739a136960587219c607c

Contents?: true

Size: 372 Bytes

Versions: 11

Compression:

Stored size: 372 Bytes

Contents

module RailsConnector
  class BlobMapping < CmsBaseModel
    def self.exists?
      table_exists?
    end

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
infopark_fiona_connector-7.0.1.6.1.6.rc4 lib/rails_connector/blob_mapping.rb
infopark_fiona_connector-7.0.1.6.1.6.rc3 lib/rails_connector/blob_mapping.rb
infopark_fiona_connector-7.0.1.6.1.6.rc2 lib/rails_connector/blob_mapping.rb
infopark_fiona_connector-7.0.1.6.1.6.rc1 lib/rails_connector/blob_mapping.rb
infopark_fiona_connector-7.0.1.5.2.7.rc1 lib/rails_connector/blob_mapping.rb
infopark_fiona_connector-7.0.1.5.2.4.rc2 lib/rails_connector/blob_mapping.rb
infopark_fiona_connector-7.0.1.5.2.4.rc1 lib/rails_connector/blob_mapping.rb
infopark_fiona_connector-7.0.1.5.2.3.rc8 lib/rails_connector/blob_mapping.rb
infopark_fiona_connector-7.0.1.5.2.3.rc7 lib/rails_connector/blob_mapping.rb
infopark_fiona_connector-7.0.1.5.2.3.rc6 lib/rails_connector/blob_mapping.rb
infopark_fiona_connector-7.0.1.5.2.3.rc5 lib/rails_connector/blob_mapping.rb