Class: Tramway::Core::ExtendableForm
- Inherits:
-
Object
- Object
- Tramway::Core::ExtendableForm
- Extended by:
- Tramway::Core::ExtendableFormsHelpers::ClassBuilder
- Defined in:
- app/forms/tramway/core/extendable_form.rb
Class Method Summary collapse
Class Method Details
.new(name, simple_properties: {}, **more_properties) ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/forms/tramway/core/extendable_form.rb', line 7 def new(name, simple_properties: {}, **more_properties) if Object.const_defined? name name.constantize else build_form_class name, simple_properties, more_properties end end |