2010-01-10 04:12:57 +00:00
|
|
|
module SimpleForm
|
|
|
|
module Inputs
|
|
|
|
class BlockInput < Base
|
2010-11-07 09:18:37 +00:00
|
|
|
def initialize(*args, &block)
|
|
|
|
super
|
|
|
|
@block = block
|
2010-01-10 04:12:57 +00:00
|
|
|
end
|
|
|
|
|
2014-03-11 22:41:25 +00:00
|
|
|
def input(wrapper_options = nil)
|
2010-01-10 04:12:57 +00:00
|
|
|
template.capture(&@block)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2013-01-28 21:02:59 +00:00
|
|
|
end
|