Sha256: d8d17813405d31e313e2bafa31344251e5fada3d2f22b6477ccfe48b9e4f1827

Contents?: true

Size: 315 Bytes

Versions: 7

Compression:

Stored size: 315 Bytes

Contents

module Pageflow
  # @api private
  class OtherFileUrlTemplates
    def call
      {
        original: UrlTemplate.from_attachment(example_file.attachment, :original)
      }
    end

    private

    def example_file
      @example_file ||= OtherFile.new(id: 0, file_name: ':basename.:extension')
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/models/pageflow/other_file_url_templates.rb
pageflow-17.0.3 app/models/pageflow/other_file_url_templates.rb
pageflow-17.0.2 app/models/pageflow/other_file_url_templates.rb
pageflow-17.0.1 app/models/pageflow/other_file_url_templates.rb
pageflow-17.0.0 app/models/pageflow/other_file_url_templates.rb
pageflow-16.2.0 app/models/pageflow/other_file_url_templates.rb
pageflow-16.1.0 app/models/pageflow/other_file_url_templates.rb