Sha256: 811e8626e2bce84ee639c7fe750299c10e7d49fb07d7111718c79d0041606356
Contents?: true
Size: 357 Bytes
Versions: 30
Compression:
Stored size: 357 Bytes
Contents
- values = form.object.class.send(field.method_name).values.map { |v| [t("enumerize.#{form.object.class.name.underscore}.#{field.method_name}.#{v}", default: t("enumerize.defaults.#{field.method_name}.#{v}")), v] } = form.collection_radio_buttons(field.method_name, values, :last, :first, {}, {}) { |i| i.label(class: 'radio') { i.radio_button + i.text } }
Version data entries
30 entries across 30 versions & 1 rubygems