Sha256: 941f7c6d86db17f5a96c20fce5b0e2cecf5fb28f0f9d3ab9566a6473b3a809b0
Contents?: true
Size: 318 Bytes
Versions: 12
Compression:
Stored size: 318 Bytes
Contents
require_relative "base" module Administrate module Field class Url < Field::Base def self.searchable? true end def truncate data.to_s[0...truncation_length] end private def truncation_length options.fetch(:truncate, 50) end end end end
Version data entries
12 entries across 12 versions & 2 rubygems