Sha256: d45034725c3bf07a28b4acfa4d2d80f8416a4d0ca5aaae063d625b044e643c2c
Contents?: true
Size: 344 Bytes
Versions: 1
Compression:
Stored size: 344 Bytes
Contents
class TableColumnComponent < ViewComponent::Base def initialize(value: nil, obj: nil, fieldname: nil, url: nil, options: {}) super @obj = obj @fieldname = fieldname @value = value || obj&.send(fieldname) @value = ApplicationController.helpers.format_value(@value, options) @url = url @options = options end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alveole-0.0.1 | lib/alveole/components/table_column_component.rb |