Sha256: 30c2c953a27e2aad04ce47325d58eacfe5d68f183f2fb7ffcf588db1184bdcd5
Contents?: true
Size: 516 Bytes
Versions: 4
Compression:
Stored size: 516 Bytes
Contents
module ActiveList module Definition class StatusColumn < AttributeColumn def initialize(table, name, options = {}) super @tooltip_method = options.fetch(:tooltip_method, nil) end def tooltip_title_code(record, child) c = if @tooltip_method.nil? "#{record}.try(:human_status) || #{record}&.try(:human_state_name) || #{datum_value(record, child)}.to_s.capitalize" else "#{record}.#{@tooltip_method}" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems