diff --git a/app/models/queries/custom_fields/hierarchy/item_query.rb b/app/models/queries/custom_fields/hierarchy/item_query.rb index 120868d82cf9..a1bd47a6eceb 100644 --- a/app/models/queries/custom_fields/hierarchy/item_query.rb +++ b/app/models/queries/custom_fields/hierarchy/item_query.rb @@ -36,10 +36,6 @@ class ItemQuery def self.model CustomField::Hierarchy::Item end - - def default_scope - super - end end end end diff --git a/lib/api/errors/unprocessable_content.rb b/lib/api/errors/unprocessable_content.rb index 74612715a6f0..2b2eaf5c4e9c 100644 --- a/lib/api/errors/unprocessable_content.rb +++ b/lib/api/errors/unprocessable_content.rb @@ -31,10 +31,6 @@ module Errors class UnprocessableContent < ErrorBase identifier "UnprocessableContent" code 422 - - def initialize(message) - super(message) - end end end end diff --git a/spec/lib/api/v3/utilities/resource_link_generator_spec.rb b/spec/lib/api/v3/utilities/resource_link_generator_spec.rb index b9c0f035527c..867e0f3ae498 100644 --- a/spec/lib/api/v3/utilities/resource_link_generator_spec.rb +++ b/spec/lib/api/v3/utilities/resource_link_generator_spec.rb @@ -55,7 +55,7 @@ end it "returns nil for unsupported records" do - record = create(:custom_field) + record = create(:oauth_client_token) expect(subject.make_link(record)).to be_nil end