Commit f57a4dd9 authored by Jeroen van Baarsen's avatar Jeroen van Baarsen Committed by Dmitriy Zaporozhets

Fixed rails 4 deprecation warnings in groups

parent 7c1b8694
...@@ -26,7 +26,7 @@ class Group < Namespace ...@@ -26,7 +26,7 @@ class Group < Namespace
def add_users(user_ids, group_access) def add_users(user_ids, group_access)
user_ids.compact.each do |user_id| 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) user.update_attributes(group_access: group_access)
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