Sha256: 3b1a383204c312adfb9fb1d1997487480cf63f73d5a1a058813052daf907e7e5

Contents?: true

Size: 247 Bytes

Versions: 9

Compression:

Stored size: 247 Bytes

Contents

# frozen_string_literal: true

class Avo::Fields::Common::BooleanGroupComponent < Avo::BaseComponent
  prop :options, default: {}.freeze
  prop :value

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
avo-3.15.1 app/components/avo/fields/common/boolean_group_component.rb
avo-3.15.0 app/components/avo/fields/common/boolean_group_component.rb
avo-3.14.5 app/components/avo/fields/common/boolean_group_component.rb
avo-3.14.4 app/components/avo/fields/common/boolean_group_component.rb
avo-3.14.3 app/components/avo/fields/common/boolean_group_component.rb
avo-3.14.2 app/components/avo/fields/common/boolean_group_component.rb
avo-3.14.1 app/components/avo/fields/common/boolean_group_component.rb
avo-3.14.0 app/components/avo/fields/common/boolean_group_component.rb
avo-3.13.7 app/components/avo/fields/common/boolean_group_component.rb