Sha256: c538c4e9be659e77afa30712dde487bdf892852adacc24df42b437138688a890
Contents?: true
Size: 284 Bytes
Versions: 12
Compression:
Stored size: 284 Bytes
Contents
module Pageflow module UrlTemplate module_function def from_attachment(attachment, *style) insert_id_partition_placeholder(attachment.url(*style)) end def insert_id_partition_placeholder(url) url.gsub(%r'(\d{3}/)+', ':id_partition/') end end end
Version data entries
12 entries across 12 versions & 1 rubygems