Sha256: b52576305b236dcf28825d04681839e7a4207b1f5309127ee2cb9bdc8d5cd15f
Contents?: true
Size: 321 Bytes
Versions: 44
Compression:
Stored size: 321 Bytes
Contents
require_relative "base" module Administrate module Field class String < 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
44 entries across 44 versions & 3 rubygems