Class: TableHelpers::SelfHelper

Inherits:
Object
  • Object
show all
Defined in:
app/utils/table_helpers.rb

Instance Method Summary collapse

Instance Method Details

#format_value(item, format) ⇒ Object



83
84
85
86
# File 'app/utils/table_helpers.rb', line 83

def format_value(item, format)
  raise "Format should be lambda" unless format.is_a? Proc
  format.call(item)
end