Class: Avo::Fields::Common::BooleanGroupComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/avo/fields/common/boolean_group_component.rb

Instance Method Summary collapse

Instance Method Details

#checked(id) ⇒ Object



7
8
9
# File 'app/components/avo/fields/common/boolean_group_component.rb', line 7

def checked(id)
  @value.present? && @value.with_indifferent_access[id].present?
end