Sha256: bc07186dee7db157a9ba0240cf38d14b15135a16471e0e030c85b31b03188330
Contents?: true
Size: 674 Bytes
Versions: 23
Compression:
Stored size: 674 Bytes
Contents
<% if policy(f.object).policies? %> <h2> Access control </h2> <p> <% if f.object.kind_of?(User) && f.object != current_user %> <%= f.check_box :activated %> The user account is activated<br /> <% end %> <% Role.roles.each do |role| %> <%= check_box_tag("#{model_name_from_record_or_class(f.object).param_key}[role_names][]", role.name, f.object.role?(role.name.to_sym), id: "role-#{role.name}", class: "role") %> <label for="role-<%= role.name %>"> <%= role.description %> </label> <br> <% end %> </p> <% end %>
Version data entries
23 entries across 23 versions & 1 rubygems