Sha256: a84674e09c3378deb5c45ec48fcb825f3c96649609bd94373533012746e53a7e

Contents?: true

Size: 243 Bytes

Versions: 2

Compression:

Stored size: 243 Bytes

Contents

module SimpleFormWithClientValidation
  module Inputs
    class BlockInput < Base
      def initialize(*args, &block)
        super
        @block = block
      end

      def input
        template.capture(&@block)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_form_with_client_validation-0.0.2 lib/simple_form_with_client_validation/inputs/block_input.rb
simple_form_with_client_validation-0.0.0 lib/simple_form_with_client_validation/inputs/block_input.rb