Sha256: 9a4e0552f3807dc7628b1c7d7aca4d19299bacbe96b6072a46e2a163062bd408

Contents?: true

Size: 287 Bytes

Versions: 16

Compression:

Stored size: 287 Bytes

Contents

module GOVUKDesignSystemFormBuilder
  module Traits
    module Error
      def error_id
        return unless has_errors?

        build_id('error')
      end

    private

      def error_element
        @error_element ||= Elements::ErrorMessage.new(*bound)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
govuk_design_system_formbuilder-2.7.6 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.7.5 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.7.4 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.7.3 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.7.2 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.7.1 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.7.0 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.6.0 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.6.0b1 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.5.3 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.5.2 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.5.1 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.5.1b1 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.5.0 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.4.0 lib/govuk_design_system_formbuilder/traits/error.rb
govuk_design_system_formbuilder-2.3.0 lib/govuk_design_system_formbuilder/traits/error.rb