diff options
author | Stan Hu <stanhu@gmail.com> | 2018-09-13 22:44:31 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-09-13 22:44:31 +0300 |
commit | 32b96bfd81ff254142dbd9c73e1a494308213cb3 (patch) | |
tree | 18f93e56a866c45d38b716eb030f4ab1c3247313 /app/finders/concerns | |
parent | 3da63dc0f44004e085e681bca46c5ef3f4e697ab (diff) | |
parent | 47b3038434f50f216b6a9b9d0ed05ac5ff586625 (diff) |
Merge branch 'frozen-string-app-finders-graphql' into 'master'
Enable frozen string in app/graphql + app/finders
See merge request gitlab-org/gitlab-ce!21681
Diffstat (limited to 'app/finders/concerns')
-rw-r--r-- | app/finders/concerns/created_at_filter.rb | 2 | ||||
-rw-r--r-- | app/finders/concerns/custom_attributes_filter.rb | 2 | ||||
-rw-r--r-- | app/finders/concerns/finder_methods.rb | 2 | ||||
-rw-r--r-- | app/finders/concerns/finder_with_cross_project_access.rb | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/app/finders/concerns/created_at_filter.rb b/app/finders/concerns/created_at_filter.rb index ac9ac77732c..6b5863a5c53 100644 --- a/app/finders/concerns/created_at_filter.rb +++ b/app/finders/concerns/created_at_filter.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module CreatedAtFilter def by_created_at(items) items = items.created_before(params[:created_before]) if params[:created_before].present? diff --git a/app/finders/concerns/custom_attributes_filter.rb b/app/finders/concerns/custom_attributes_filter.rb index 022a19b0a7f..825c3a6b5b7 100644 --- a/app/finders/concerns/custom_attributes_filter.rb +++ b/app/finders/concerns/custom_attributes_filter.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module CustomAttributesFilter # rubocop: disable CodeReuse/ActiveRecord def by_custom_attributes(items) diff --git a/app/finders/concerns/finder_methods.rb b/app/finders/concerns/finder_methods.rb index ce0ec214b8a..5290313585f 100644 --- a/app/finders/concerns/finder_methods.rb +++ b/app/finders/concerns/finder_methods.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module FinderMethods # rubocop: disable CodeReuse/ActiveRecord def find_by!(*args) diff --git a/app/finders/concerns/finder_with_cross_project_access.rb b/app/finders/concerns/finder_with_cross_project_access.rb index f70a0b60864..e038636f0c4 100644 --- a/app/finders/concerns/finder_with_cross_project_access.rb +++ b/app/finders/concerns/finder_with_cross_project_access.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # Module to prepend into finders to specify wether or not the finder requires # cross project access # |