Sha256: f20390f77e748595612370e4655e8d98d9367ab39c69565f8d502ed24e0390e0
Contents?: true
Size: 452 Bytes
Versions: 3
Compression:
Stored size: 452 Bytes
Contents
module Pageflow class ImageFileUrlTemplates def call styles.each_with_object({}) do |style, result| result[style] = UrlTemplate.from_attachment(example_file.attachment, style) end end private def styles example_file.attachment_styles(example_file.attachment).keys + [:original] end def example_file @example_file ||= ImageFile.new(id: 0, file_name: ':basename.:extension') end end end
Version data entries
3 entries across 3 versions & 1 rubygems