mirror of
https://github.com/heartcombo/simple_form.git
synced 2022-11-09 12:19:26 -05:00
15 lines
No EOL
322 B
Ruby
15 lines
No EOL
322 B
Ruby
module SimpleForm
|
|
module Wrappers
|
|
class Single < Many
|
|
def render(input)
|
|
options = input.options
|
|
if options[namespace] == false
|
|
nil
|
|
else
|
|
content = input.send(namespace)
|
|
wrap(input, options, content) if content
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end |