diff --git a/lib/simple_form/wrappers/single.rb b/lib/simple_form/wrappers/single.rb index d3606a66..2f62b31e 100644 --- a/lib/simple_form/wrappers/single.rb +++ b/lib/simple_form/wrappers/single.rb @@ -9,13 +9,17 @@ module SimpleForm def render(input) options = input.options if options[namespace] != false - content = input.send(namespace) + content = component.render(input) wrap(input, options, content) if content end end private + def component + components.first + end + def html_options(options) [:label, :input].include?(namespace) ? {} : super end