Sha256: c60c23b6e33a6c552dc54dda7d68393afe861f75b9674588dcad500f3e029cdd
Contents?: true
Size: 334 Bytes
Versions: 43
Compression:
Stored size: 334 Bytes
Contents
require_relative "base" module Administrate module Field class Text < Administrate::Field::Base def self.searchable? false 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
43 entries across 43 versions & 3 rubygems