Module: Bemer::SimpleForm
- Extended by:
- ActiveSupport::Autoload
- Defined in:
- lib/bemer/simple_form.rb,
lib/bemer/simple_form/inputs.rb,
lib/bemer/simple_form/builder.rb,
lib/bemer/simple_form/version.rb,
lib/bemer/simple_form/configuration.rb,
lib/bemer/simple_form/test/configuration_helpers.rb
Defined Under Namespace
Modules: Builder, Inputs, Test
Classes: Configuration
Constant Summary
collapse
- VERSION =
'0.3.0'
Class Method Summary
collapse
Class Method Details
.setup {|config| ... } ⇒ Object
29
30
31
|
# File 'lib/bemer/simple_form.rb', line 29
def setup
yield config
end
|
33
34
35
36
37
38
39
|
# File 'lib/bemer/simple_form.rb', line 33
def transform_element_name(namespace, block, namespaced_elem, initial_elem)
return namespaced_elem unless element_name_transformer.respond_to?(:call)
namespace = namespace.to_s.chomp('_html').to_sym unless namespace.nil?
element_name_transformer.call(namespace, block, namespaced_elem, initial_elem)
end
|