Module: Component::CollectionTable::BooleanConcern

Extended by:
ActiveSupport::Concern
Included in:
Component::CollectionTable
Defined in:
app/concerns/component/collection_table/boolean_concern.rb

Instance Method Summary collapse

Instance Method Details

#boolean(name, options = {}, &block) ⇒ Object


5
6
7
8
# File 'app/concerns/component/collection_table/boolean_concern.rb', line 5

def boolean(name, options = {}, &block)
  options.reverse_merge!(render_as: :boolean)
  column(name, options, &block)
end