Sha256: c8e26c57cc69e7b78433bdd7eef071cea7caaa59e94e8bcb71b20c374158158b

Contents?: true

Size: 388 Bytes

Versions: 7

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

module Katalyst
  module GOVUK
    module Formbuilder
      module Containers
        module FieldsetContext
          def initialize(builder, object_name = nil, attribute_name = nil, &)
            builder.fieldset_context << attribute_name

            super

            builder.fieldset_context.pop
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
katalyst-govuk-formbuilder-1.13.0 lib/katalyst/govuk/formbuilder/containers/fieldset_context.rb
katalyst-govuk-formbuilder-1.12.1 lib/katalyst/govuk/formbuilder/containers/fieldset_context.rb
katalyst-govuk-formbuilder-1.12.0 lib/katalyst/govuk/formbuilder/containers/fieldset_context.rb
katalyst-govuk-formbuilder-1.11.0 lib/katalyst/govuk/formbuilder/containers/fieldset_context.rb
katalyst-govuk-formbuilder-1.10.2 lib/katalyst/govuk/formbuilder/containers/fieldset_context.rb
katalyst-govuk-formbuilder-1.10.1 lib/katalyst/govuk/formbuilder/containers/fieldset_context.rb
katalyst-govuk-formbuilder-1.10.0 lib/katalyst/govuk/formbuilder/containers/fieldset_context.rb