Sha256: 1cf9f5b26bee570f99f7dfe200f3e8f0b213accb39360deca792c5afddc391b1

Contents?: true

Size: 348 Bytes

Versions: 34

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

module Phlexi
  module Form
    module Components
      class FullError < Base
        def view_template
          p(**attributes) do
            field.full_error
          end
        end

        private

        def render?
          field.show_errors? && field.has_errors?
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
phlexi-form-0.8.3 lib/phlexi/form/components/full_error.rb
phlexi-form-0.8.2 lib/phlexi/form/components/full_error.rb
phlexi-form-0.8.1 lib/phlexi/form/components/full_error.rb
phlexi-form-0.8.0 lib/phlexi/form/components/full_error.rb
phlexi-form-0.7.2 lib/phlexi/form/components/full_error.rb
phlexi-form-0.7.1 lib/phlexi/form/components/full_error.rb
phlexi-form-0.7.0 lib/phlexi/form/components/full_error.rb
phlexi-form-0.6.2 lib/phlexi/form/components/full_error.rb
phlexi-form-0.6.1 lib/phlexi/form/components/full_error.rb
phlexi-form-0.6.0 lib/phlexi/form/components/full_error.rb
phlexi-form-0.5.11 lib/phlexi/form/components/full_error.rb
phlexi-form-0.5.10 lib/phlexi/form/components/full_error.rb
phlexi-form-0.5.9 lib/phlexi/form/components/full_error.rb
phlexi-form-0.5.8 lib/phlexi/form/components/full_error.rb
phlexi-form-0.5.7 lib/phlexi/form/components/full_error.rb
phlexi-form-0.5.6 lib/phlexi/form/components/full_error.rb
phlexi-form-0.5.5 lib/phlexi/form/components/full_error.rb
phlexi-form-0.5.4 lib/phlexi/form/components/full_error.rb
phlexi-form-0.5.3 lib/phlexi/form/components/full_error.rb
phlexi-form-0.5.2 lib/phlexi/form/components/full_error.rb