Commit 42d02d19 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Do not use inherited constants to fix NoMethodError

There was an error with Ruby `const_get` behaviour and the load order
of the ruby files which was causing the application logic to use the
wrong class. This commit fixes this issue.
parent 2ff32a4e
......@@ -41,7 +41,7 @@ class IssuesFinder < IssuableFinder
# rubocop: enable CodeReuse/ActiveRecord
def params_class
IssuesFinder::Params
IssuesFinder.const_get(:Params, false)
end
# rubocop: disable CodeReuse/ActiveRecord
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment