Class: Brightcontent::ViewLookup::ListField

Inherits:
Base
  • Object
show all
Defined in:
lib/brightcontent/view_lookup/list_field.rb

Instance Attribute Summary

Attributes inherited from Base

#options, #view_context

Instance Method Summary collapse

Methods inherited from Base

#call, #initialize

Constructor Details

This class inherits a constructor from Brightcontent::ViewLookup::Base

Instance Method Details

#render_defaultObject



4
5
6
# File 'lib/brightcontent/view_lookup/list_field.rb', line 4

def render_default
  view_context.strip_tags(field_value.to_s).truncate(50)
end