Commit f57a4dd92253c2b7e3d566b4a39a0e7c8b2ee5cf

Authored by Jeroen van Baarsen
Committed by Dmitriy Zaporozhets
1 parent 7c1b8694

Fixed rails 4 deprecation warnings in groups

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/group.rb
... ... @@ -26,7 +26,7 @@ class Group < Namespace
26 26  
27 27 def add_users(user_ids, group_access)
28 28 user_ids.compact.each do |user_id|
29   - user = self.users_groups.find_or_initialize_by_user_id(user_id)
  29 + user = self.users_groups.find_or_initialize_by(user_id: user_id)
30 30 user.update_attributes(group_access: group_access)
31 31 end
32 32 end
... ...