Skip to content

Commit

Permalink
Prevent errors on groups == nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz Michalak committed Apr 18, 2015
1 parent 680d931 commit 91330a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/users/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<%= f.text_area :contact%>
<% if (can? :manage, UserGroup) && @user.agent? %>
<% if (can? :manage, UserGroup) && @user.agent? && @groups %>
<%= f.collection_select :group_ids, @groups, :id, :name, {}, {multiple: true, class: 'select2'} %>
<% end %>
</div>
Expand Down

0 comments on commit 91330a1

Please sign in to comment.