Sha256: 18cd40a8aae86360dc381a670afcb2b2ba727c258d76d1981907959a38651a55

Contents?: true

Size: 156 Bytes

Versions: 8

Compression:

Stored size: 156 Bytes

Contents

module Smithy
  class AssetLink
    def self.fix(content)
      content.gsub(/\/smithy\/assets\/([0-9]+)/) { Smithy::Asset.find($1).url }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
smithycms-0.5.99.3 lib/smithy/asset_link.rb
smithycms-0.6.7 lib/smithy/asset_link.rb
smithycms-0.6.6 lib/smithy/asset_link.rb
smithycms-0.6.5 lib/smithy/asset_link.rb
smithycms-0.6.4 lib/smithy/asset_link.rb
smithycms-0.6.3 lib/smithy/asset_link.rb
smithycms-0.5.99.2 lib/smithy/asset_link.rb
smithycms-0.5.99.1 lib/smithy/asset_link.rb