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.5.1 lib/phlexi/form/components/full_error.rb
phlexi-form-0.5.0 lib/phlexi/form/components/full_error.rb
phlexi-form-0.4.8 lib/phlexi/form/components/full_error.rb
phlexi-form-0.4.7 lib/phlexi/form/components/full_error.rb
phlexi-form-0.4.6 lib/phlexi/form/components/full_error.rb
phlexi-form-0.4.5 lib/phlexi/form/components/full_error.rb
phlexi-form-0.4.4 lib/phlexi/form/components/full_error.rb
phlexi-form-0.4.3 lib/phlexi/form/components/full_error.rb
phlexi-form-0.4.2 lib/phlexi/form/components/full_error.rb
phlexi-form-0.4.1 lib/phlexi/form/components/full_error.rb
phlexi-form-0.4.0 lib/phlexi/form/components/full_error.rb
phlexi-form-0.3.0 lib/phlexi/form/components/full_error.rb
phlexi-form-0.3.0.rc1 lib/phlexi/form/components/full_error.rb
phlexi-form-0.2.0 lib/phlexi/form/components/full_error.rb