diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2018-04-12 13:36:31 +1100 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2018-04-12 13:36:31 +1100 |
commit | cbf2906496b5123fc7bf1be3094693790d047e11 (patch) | |
tree | 3ea2a936243b4d9e4274341d75b320abea7af0d5 /app/models/ci/group_variable.rb | |
parent | 947ed8b88281a618530ae30bc0fe1e3d61a3c1d9 (diff) | |
download | gitlab-ce-cbf2906496b5123fc7bf1be3094693790d047e11.tar.gz |
[Rails5] Fix `undefined method 'arel_table' for Ci::Group:Class` error
Some specs fail in rails5 branch with errors like
```
1) Group#secret_variables_for when the ref is not protected contains only the secret variables
Failure/Error: variables = Ci::GroupVariable.where(group: list_of_ids)
NoMethodError:
undefined method `arel_table' for Ci::Group:Class
```
This commit fixes it.
Diffstat (limited to 'app/models/ci/group_variable.rb')
-rw-r--r-- | app/models/ci/group_variable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/group_variable.rb b/app/models/ci/group_variable.rb index 62d768cc6cf..44cb583e1bd 100644 --- a/app/models/ci/group_variable.rb +++ b/app/models/ci/group_variable.rb @@ -4,7 +4,7 @@ module Ci include HasVariable include Presentable - belongs_to :group + belongs_to :group, class_name: "::Group" alias_attribute :secret_value, :value |