Sha256: 722e5de40c7d8f0463f192c6c0065139ff67fa5d7093c5fa28c1c90ea5796331

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

= form_control(:name, user)
= form_control(:surname, user)
- if policy(user).permitted_attributes.include? :role_id
  = form_control(:role_id, user, type: 'select', options: Ditty::Role.select(:id, :name).order(:name).as_hash(:id, :name), name: 'user[role_id][]', value: user.new? ? [] : user.roles_dataset.map(:id), multiple: true)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ditty-0.11.1 views/users/user.haml
ditty-0.10.2 views/users/user.haml