diff options
author | Stan Hu <stanhu@gmail.com> | 2018-11-19 22:54:52 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-11-19 22:54:52 +0000 |
commit | ee3f474935336c35abb69485c3592fba7b5bfd98 (patch) | |
tree | ff775ba4a4fb69ac060673138c8b8bc505eace55 /app/finders | |
parent | 9dd2eae3bb069b96f8db153952ee02226e37fe73 (diff) | |
parent | 5d5481519deb304243ed1c09171ccf8a45052d46 (diff) | |
download | gitlab-ce-ee3f474935336c35abb69485c3592fba7b5bfd98.tar.gz |
Merge branch 'rails5-active-record-class-value' into 'master'
Rails5 deprecation: Passing a class as a value in an Active Record query is deprecated
See merge request gitlab-org/gitlab-ce!23164
Diffstat (limited to 'app/finders')
-rw-r--r-- | app/finders/events_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/events_finder.rb b/app/finders/events_finder.rb index 2e82bda8730..8df01f1dad9 100644 --- a/app/finders/events_finder.rb +++ b/app/finders/events_finder.rb @@ -58,7 +58,7 @@ class EventsFinder def by_target_type(events) return events unless Event::TARGET_TYPES[params[:target_type]] - events.where(target_type: Event::TARGET_TYPES[params[:target_type]]) + events.where(target_type: Event::TARGET_TYPES[params[:target_type]].name) end # rubocop: enable CodeReuse/ActiveRecord |