Class: Wallaby::Resources::Index::PathHtml
- Inherits:
-
Cell
- Object
- Cell
- Wallaby::Resources::Index::PathHtml
- Defined in:
- app/views/wallaby/resources/index/path_html.rb
Overview
Html cell
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#render ⇒ String
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/views/wallaby/resources/index/path_html.rb', line 9 def render if value.nil? null else max = [:max] || .max self.value = value.to_s if value.length > max concat content_tag(:code, value.truncate(max)) imodal [:label], value else content_tag :code, value end end end |