I would rewrite it like this:
```ruby
def inputs(*args, &block)
  @inputs_with_block = !!block_given? # Record whether a block is passed
  form_buffers.last << with_new_form_buffer{ super; form_buffers.last }.html_safe
end
```