Sha256: 6f58b4ee2c40bec65e97b35e538ce7d5aa96a5f4bfbb5870f0fad12fd262c811

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 Bytes

Contents

module Pageflow
  module Panorama
    module PackagesHelper
      include RevisionFileHelper

      def panorama_url(configuration)
        if configuration['panorama_source'] == 'url'
          configuration['panorama_url']
        else
          package = find_file_in_entry(Package, configuration['panorama_package_id'])
          package ? package.index_document_path : nil
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pageflow-panorama-2.4.0 app/helpers/pageflow/panorama/packages_helper.rb
pageflow-panorama-2.3.0 app/helpers/pageflow/panorama/packages_helper.rb
pageflow-panorama-2.2.0 app/helpers/pageflow/panorama/packages_helper.rb