Methods

Files

Class/Module Index [+]

Quicksearch

SimpleForm::Wrappers::Single

`Single` is an optimization for a wrapper that has only one component.

Public Instance Methods

render(input) click to toggle source
# File lib/simple_form/wrappers/single.rb, line 9
def render(input)
  options = input.options
  if options[namespace] != false
    content = input.send(namespace)
    wrap(input, options, content) if content
  end
end

Public Class Methods

new(name, options={}) click to toggle source
# File lib/simple_form/wrappers/single.rb, line 5
def initialize(name, options={})
  super(name, [name], options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.