Sha256: 2988001d165ebb646d87670e0eb46fe76f583de57851883951d2edc892772555
Contents?: true
Size: 572 Bytes
Versions: 30
Compression:
Stored size: 572 Bytes
Contents
- administrador_helper(self).filter_attributes_for_form(resource_class.attribute_names).each do |name| - if form.object.class.columns_hash[name].try(:type) == :hstore = simple_fields_for name do |hstore_form| - if form.object.send(name).respond_to?(:each) - form.object.send(name).each do |key, value| = hstore_form.input key, input_html: { value: value } - elsif name.end_with?('_id') && !resource_class.reflect_on_association(name.chomp('_id')).options[:polymorphic] = form.association name.chomp("_id") - else = form.input name
Version data entries
30 entries across 30 versions & 1 rubygems