Sha256: 124e89d3ff697b9e5dd01d535841b6ab1601850cd8367af95c1ba73ee5ba3684

Contents?: true

Size: 161 Bytes

Versions: 7

Compression:

Stored size: 161 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
smithycms-0.8.1 lib/smithy/asset_link.rb
smithycms-0.7.3 lib/smithy/asset_link.rb
smithycms-0.7.2 lib/smithy/asset_link.rb
smithycms-0.7.1 lib/smithy/asset_link.rb
smithycms-0.7.0 lib/smithy/asset_link.rb
smithycms-0.6.10 lib/smithy/asset_link.rb
smithycms-0.6.9 lib/smithy/asset_link.rb