class SimpleForm::Wrappers::Leaf
def find(name)
def find(name) self if @namespace == name end
def initialize(namespace, options = {})
def initialize(namespace, options = {}) @namespace = namespace @options = options end
def render(input)
def render(input) method = input.method(@namespace) if method.arity.zero? SimpleForm.deprecator.warn(SimpleForm::CUSTOM_INPUT_DEPRECATION_WARN % { name: @namespace }) method.call else method.call(@options) end end