Sha256: fc3dc0bb6624d4ad9abeed2569f147448535d184a48e7c3eff9d962eb45dfb15

Contents?: true

Size: 263 Bytes

Versions: 4

Compression:

Stored size: 263 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.as_hash(:id, :name), name: 'user[role_id][]', field: :roles, multiple: true)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ditty-0.4.0 views/users/user.haml
ditty-0.3.3 views/users/user.haml
ditty-0.3.2 views/users/user.haml
ditty-0.3.1 views/users/user.haml