Class: Koi::Tables::Body::BooleanComponent

Inherits:
Koi::Tables::BodyCellComponent show all
Defined in:
app/components/koi/tables/body.rb

Overview

Shows Yes/No for boolean values

Instance Method Summary collapse

Methods inherited from Koi::Tables::BodyCellComponent

#before_render, #to_s

Instance Method Details

#rendered_valueObject



10
11
12
# File 'app/components/koi/tables/body.rb', line 10

def rendered_value
  value ? "Yes" : "No"
end