Skip to content
Snippets Groups Projects
Commit f57a4dd9 authored by Jeroen van Baarsen's avatar Jeroen van Baarsen Committed by Dmitriy Zaporozhets
Browse files

Fixed rails 4 deprecation warnings in groups

parent 7c1b8694
No related branches found
No related tags found
1 merge request!1Fix Links To Gitlab Cloud
Loading
Loading
@@ -26,7 +26,7 @@ class Group < Namespace
 
def add_users(user_ids, group_access)
user_ids.compact.each do |user_id|
user = self.users_groups.find_or_initialize_by_user_id(user_id)
user = self.users_groups.find_or_initialize_by(user_id: user_id)
user.update_attributes(group_access: group_access)
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment