gitlabhq/app/models/group.rb

23 lines
507 B
Ruby
Raw Normal View History

2012-11-19 21:24:05 +03:00
# == Schema Information
#
2012-11-24 22:16:51 +02:00
# Table name: namespaces
2012-11-19 21:24:05 +03:00
#
# id :integer not null, primary key
# name :string(255) not null
2012-11-24 22:16:51 +02:00
# path :string(255) not null
2012-11-19 21:24:05 +03:00
# owner_id :integer not null
# created_at :datetime not null
# updated_at :datetime not null
2012-11-24 22:16:51 +02:00
# type :string(255)
2012-11-19 21:24:05 +03:00
#
class Group < Namespace
2012-10-03 14:26:37 +03:00
def users
2012-10-09 04:10:04 +04:00
User.joins(:users_projects).where(users_projects: {project_id: project_ids}).uniq
2012-10-03 14:26:37 +03:00
end
def human_name
name
end
2012-10-02 18:17:12 +03:00
end