Commit f13bcb2b authored by Jacob Vosmaer's avatar Jacob Vosmaer

Fix LdapGroupLink error message

ActiveModel::Validations has an 'errors' attribute, but no 'error'.
parent 405a5acb
...@@ -16,7 +16,7 @@ class Groups::LdapGroupLinksController < ApplicationController ...@@ -16,7 +16,7 @@ class Groups::LdapGroupLinksController < ApplicationController
redirect_to :back, notice: 'New LDAP link saved' redirect_to :back, notice: 'New LDAP link saved'
end end
else else
redirect_to :back, alert: "Could not create new LDAP link: #{ldap_group_link.error.full_messages * ', '}" redirect_to :back, alert: "Could not create new LDAP link: #{ldap_group_link.errors.full_messages * ', '}"
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment