Method: DynamicFieldsets::Field#show_partial_locals
- Defined in:
- app/models/dynamic_fieldsets/field.rb
#show_partial_locals(args) ⇒ Hash
Note that this method is really weird You would think that the value displayed should be figured out here but instead, it is figured out first, then passed in, in the arguments hash
149 150 151 152 153 154 155 156 157 158 159 160 |
# File 'app/models/dynamic_fieldsets/field.rb', line 149 def show_partial_locals(args) # these should be incredibly temporary output = { :value => args[:value], :values => args[:values], :label => self.label, :object => "#{DynamicFieldsets::config.form_fieldset_associator_prefix}#{args[:fsa].id}", :method => "#{DynamicFieldsets::config.form_field_prefix}#{args[:fieldset_child].id}", } output[:id] = "#{output[:object]}_#{output[:method]}" return output end |