Sha256: 4e40eb4296c7139c97c3660457175ea1c00618c7d2632bc767a7f9b066fdad63

Contents?: true

Size: 772 Bytes

Versions: 17

Compression:

Stored size: 772 Bytes

Contents

module RailsConnector

  class CmsBackend

    def self.current
      @current ||= begin
        RailsConnector::Configuration.content_service ? ServiceCmsBackend.new : DynamoCmsBackend.new
      end
    end

    def self.begin_caching
      current.begin_caching
    end

    def self.end_caching
      current.end_caching
    end

    def self.find_obj_data_by(workspace_data, index, keys)
      current.find_obj_data_by(workspace_data, index, keys)
    end

    def self.find_workspace_data_by_id(id)
      current.find_workspace_data_by_id(id)
    end

    def self.caching?
      current.caching?
    end

    def self.query_counter
      current.query_counter
    end

    def self.find_blob_data_by_id(id)
      current.find_blob_data_by_id(id)
    end

  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
infopark_cloud_connector-6.8.3.115.227021242 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.3.73.75172665 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.3.2.153416031 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.3.67.110847540 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.3.1.23895778 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.2.36.82613853 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.2.7.128454143 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.1.26.236500544 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.1 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.0.539.93842523 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.0.529.114081979 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.0.518.30999728 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.0.515.34928522 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.0.498.46559598 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.0.480.261594408 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.0.444.171626367 lib/rails_connector/cms_backend.rb
infopark_cloud_connector-6.8.0.406.131718077 lib/rails_connector/cms_backend.rb