Sha256: 53d263af8aedb1b9e95e997236f8ddd8936fc4a230fe0f7fb046470bef4d77b4

Contents?: true

Size: 207 Bytes

Versions: 46

Compression:

Stored size: 207 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

46 entries across 46 versions & 1 rubygems

Version Path
dato-0.6.9 lib/dato/local/field_type/link.rb
dato-0.6.8 lib/dato/local/field_type/link.rb
dato-0.6.7 lib/dato/local/field_type/link.rb
dato-0.6.6 lib/dato/local/field_type/link.rb
dato-0.6.5 lib/dato/local/field_type/link.rb
dato-0.6.3 lib/dato/local/field_type/link.rb
dato-0.6.3.beta lib/dato/local/field_type/link.rb
dato-0.6.2 lib/dato/local/field_type/link.rb
dato-0.6.1 lib/dato/local/field_type/link.rb
dato-0.6.0 lib/dato/local/field_type/link.rb
dato-0.5.1 lib/dato/local/field_type/link.rb
dato-0.5.0 lib/dato/local/field_type/link.rb
dato-0.4.3 lib/dato/local/field_type/link.rb
dato-0.4.2 lib/dato/local/field_type/link.rb
dato-0.4.1 lib/dato/local/field_type/link.rb
dato-0.4.0 lib/dato/local/field_type/link.rb
dato-0.3.31 lib/dato/local/field_type/link.rb
dato-0.4.0.pre lib/dato/local/field_type/link.rb
dato-0.3.30 lib/dato/local/field_type/link.rb
dato-0.3.29 lib/dato/local/field_type/link.rb