summaryrefslogtreecommitdiff
path: root/app/models/group.rb
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-01-20 17:29:53 -0500
committerRubén Dávila <rdavila84@gmail.com>2016-01-20 17:29:53 -0500
commit4d345bc4003022ca22b5e7f42069c5a6bde41b6c (patch)
tree95d12650e1fa9ddca5223b3f5ad723f865e983d9 /app/models/group.rb
parent1553c560e0d02e670b7cec2b443545e67418b569 (diff)
downloadgitlab-ce-4d345bc4003022ca22b5e7f42069c5a6bde41b6c.tar.gz
Remember last sort option used.
Diffstat (limited to 'app/models/group.rb')
-rw-r--r--app/models/group.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index 5a31b46920c..3ba18b85193 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -19,7 +19,8 @@ require 'file_size_validator'
class Group < Namespace
include Gitlab::ConfigHelper
include Referable
-
+ include CookieHelpers
+
has_many :group_members, dependent: :destroy, as: :source, class_name: 'GroupMember'
alias_method :members, :group_members
has_many :users, through: :group_members