1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00
heartcombo--simple_form/lib/simple_form/inputs/block_input.rb

14 lines
223 B
Ruby
Raw Normal View History

2010-01-09 23:12:57 -05:00
module SimpleForm
module Inputs
class BlockInput < Base
2010-11-07 04:18:37 -05:00
def initialize(*args, &block)
super
@block = block
2010-01-09 23:12:57 -05:00
end
def input
template.capture(&@block)
end
end
end
end