Sha256: cf2cc9037ae687ee1fd72621f425693b82c7eb0c5dfe34d7b66520beb47259a0

Contents?: true

Size: 369 Bytes

Versions: 8

Compression:

Stored size: 369 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, :fienjoyt, {}, {} { |i| i.label( class: 'checkbox' ) { i.check_box + i.text } }

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enjoy_cms-0.2.1 app/views/rails_admin/main/_enum_check_boxes.html.slim
enjoy_cms-0.2.0.3.2 app/views/rails_admin/main/_enum_check_boxes.html.slim
enjoy_cms-0.2.0.3.1 app/views/rails_admin/main/_enum_check_boxes.html.slim
enjoy_cms-0.2.0.3 app/views/rails_admin/main/_enum_check_boxes.html.slim
enjoy_cms-0.2.0.2 app/views/rails_admin/main/_enum_check_boxes.html.slim
enjoy_cms-0.2.0.1.beta app/views/rails_admin/main/_enum_check_boxes.html.slim
enjoy_cms-0.2.0.beta app/views/rails_admin/main/_enum_check_boxes.html.slim
enjoy_cms-0.1.0.beta1 app/views/rails_admin/main/_enum_check_boxes.html.slim