Sha256: 4e4c994c0c238b0650336d1f7344a39d7bcb6602156f0728b412e22844dd95db

Contents?: true

Size: 208 Bytes

Versions: 29

Compression:

Stored size: 208 Bytes

Contents

# frozen_string_literal: true

module Dato
  module Local
    module FieldType
      class Link
        def self.parse(value, repo)
          value && repo.find(value)
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
dato-0.8.3 lib/dato/local/field_type/link.rb
dato-0.8.2 lib/dato/local/field_type/link.rb
dato-0.8.1 lib/dato/local/field_type/link.rb
dato-0.8.0 lib/dato/local/field_type/link.rb
dato-0.7.18 lib/dato/local/field_type/link.rb
dato-0.7.17 lib/dato/local/field_type/link.rb
dato-0.7.16 lib/dato/local/field_type/link.rb
dato-0.7.15 lib/dato/local/field_type/link.rb
dato-0.7.14 lib/dato/local/field_type/link.rb
dato-0.7.13 lib/dato/local/field_type/link.rb
dato-0.7.10 lib/dato/local/field_type/link.rb
dato-0.7.9 lib/dato/local/field_type/link.rb
dato-0.7.8 lib/dato/local/field_type/link.rb
dato-0.7.7 lib/dato/local/field_type/link.rb
dato-0.7.6 lib/dato/local/field_type/link.rb
dato-0.7.5 lib/dato/local/field_type/link.rb
dato-0.7.4 lib/dato/local/field_type/link.rb
dato-0.7.3 lib/dato/local/field_type/link.rb
dato-0.7.2 lib/dato/local/field_type/link.rb
dato-0.7.1 lib/dato/local/field_type/link.rb