Sha256: a6cdffd35429f348068a4063241dc1811c7a8baa0724dc692b2b3730240b8655

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_radio_buttons field.method_name, values, :last, :fienjoyt, {}, {} { |i| i.label(class: 'radio') { i.radio_button + 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_radio_buttons.html.slim
enjoy_cms-0.2.0.3.2 app/views/rails_admin/main/_enum_radio_buttons.html.slim
enjoy_cms-0.2.0.3.1 app/views/rails_admin/main/_enum_radio_buttons.html.slim
enjoy_cms-0.2.0.3 app/views/rails_admin/main/_enum_radio_buttons.html.slim
enjoy_cms-0.2.0.2 app/views/rails_admin/main/_enum_radio_buttons.html.slim
enjoy_cms-0.2.0.1.beta app/views/rails_admin/main/_enum_radio_buttons.html.slim
enjoy_cms-0.2.0.beta app/views/rails_admin/main/_enum_radio_buttons.html.slim
enjoy_cms-0.1.0.beta1 app/views/rails_admin/main/_enum_radio_buttons.html.slim