Sha256: 7044fbb17f8cbcb7745b1512e541ea5f8573322cc9413b704574b43d28fbf165
Contents?: true
Size: 366 Bytes
Versions: 31
Compression:
Stored size: 366 Bytes
Contents
ruby: values = form.object.class.send(field.method_name).values.map { |v| [t("enumerize.#{form.object.class.name.downcase}.#{field.method_name}.#{v}", default: t("enumerize.defaults.#{field.method_name}.#{v}")), v] } = form.collection_check_boxes field.method_name, values, :last, :first, {}, {} { |i| i.label( class: 'checkbox' ) { i.check_box + i.text } }
Version data entries
31 entries across 31 versions & 2 rubygems