Show More
Commit Description:
fix bug with duplicate logins are given...
Commit Description:
fix bug with duplicate logins are given also increase dropdown size on group view
File last commit:
Show/Diff file:
Action:
app/models/group.rb | 20 lines | 487 B | text/x-ruby | RubyLexer |
add problem group
r672 class Group < ActiveRecord::Base
start update to 5.2
r751 has_many :groups_problems, class_name: 'GroupProblem'
make group_user and group_problem unique
r678 has_many :problems, :through => :groups_problems
start update to 5.2
r751 has_many :groups_users, class_name: 'GroupUser'
make group_user and group_problem unique
r678 has_many :users, :through => :groups_users
#has_and_belongs_to_many :problems
#has_and_belongs_to_many :users
update new list of users
r808 def add_users_skip_existing(users_list)
new_list = []
fix bug with duplicate logins are given...
r809 users_list.uniq.each do |u|
update new list of users
r808 new_list << u unless users.include? u
end
users << new_list
end
make group_user and group_problem unique
r678
add problem group
r672 end