Sha256: 964e97539ded469b664090197e90199b39b557bc40618ccc121f228062af06f4
Contents?: true
Size: 292 Bytes
Versions: 2
Compression:
Stored size: 292 Bytes
Contents
module Brightcontent module ViewLookup class ListField < Abstract def render_default view_context.strip_tags(field_value.to_s).truncate(50) end def field_type options[:item].column_for_attribute(options[:field]).try(:type) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brightcontent-core-2.1.1 | lib/brightcontent/view_lookup/list_field.rb |
brightcontent-core-2.1.0 | lib/brightcontent/view_lookup/list_field.rb |