Class: Para::Stall::Inputs::VariantSelectInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- Para::Stall::Inputs::VariantSelectInput
- Includes:
- VariantInputHelper
- Defined in:
- lib/para/stall/inputs/variant_select_input.rb
Instance Method Summary collapse
Instance Method Details
#input(wrapper_options = nil) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/para/stall/inputs/variant_select_input.rb', line 7 def input( = nil) ensure_target_relation_present! template.render partial: partial_path, locals: { form: @builder, model: model, attribute_name: attribute_name, foreign_key: foreign_key, properties: properties, variants_data: variants_data, price_selector: price_selector, variant_label_class: variant_label_class, variant_property_class: variant_property_class } end |