Sha256: b65eb038e00b332878c81b40ae6b27ff7b1aa27ae2bd35511205a292ba7e49f1

Contents?: true

Size: 223 Bytes

Versions: 29

Compression:

Stored size: 223 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

29 entries across 29 versions & 4 rubygems

Version Path
simple_form-2.1.3 lib/simple_form/inputs/block_input.rb
simple_form-2.1.2 lib/simple_form/inputs/block_input.rb
simple_form-2.1.1 lib/simple_form/inputs/block_input.rb
simple_form_awesome-2.5.0 lib/simple_form/inputs/block_input.rb
simple_form_awesome-2.4.0 lib/simple_form/inputs/block_input.rb
simple_form_awesome-2.3.0 lib/simple_form/inputs/block_input.rb
simple_form_awesome-2.2.0 lib/simple_form/inputs/block_input.rb
simple_form-2.1.0 lib/simple_form/inputs/block_input.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/simple_form-2.0.4/lib/simple_form/inputs/block_input.rb
simple_form-2.0.4 lib/simple_form/inputs/block_input.rb
simple_form-2.0.3 lib/simple_form/inputs/block_input.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/simple_form-2.0.2/lib/simple_form/inputs/block_input.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/simple_form-2.0.2/lib/simple_form/inputs/block_input.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/simple_form-2.0.2/lib/simple_form/inputs/block_input.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/simple_form-2.0.2/lib/simple_form/inputs/block_input.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/simple_form-2.0.2/lib/simple_form/inputs/block_input.rb
simple_form-2.0.2 lib/simple_form/inputs/block_input.rb
ehoch_simple_form-2.0.2.dev lib/simple_form/inputs/block_input.rb
simple_form-2.0.1 lib/simple_form/inputs/block_input.rb
simple_form-2.0.0 lib/simple_form/inputs/block_input.rb