Sha256: 423404d7abd2c6f833d6485d26d9cb04828110696f91eabc8ea11816943ad1ed

Contents?: true

Size: 224 Bytes

Versions: 7

Compression:

Stored size: 224 Bytes

Contents

module SimpleForm
  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

7 entries across 7 versions & 1 rubygems

Version Path
simple_form-3.0.4 lib/simple_form/inputs/block_input.rb
simple_form-3.0.3 lib/simple_form/inputs/block_input.rb
simple_form-3.0.2 lib/simple_form/inputs/block_input.rb
simple_form-3.0.1 lib/simple_form/inputs/block_input.rb
simple_form-3.0.0 lib/simple_form/inputs/block_input.rb
simple_form-3.0.0.rc lib/simple_form/inputs/block_input.rb
simple_form-3.0.0.beta1 lib/simple_form/inputs/block_input.rb