Commit fc1a093d authored by Arturo Herrero's avatar Arturo Herrero

Remove dead code: Service#find_by_template

Original commit 93e9793c.
parent 31adccaf
...@@ -319,10 +319,6 @@ class Service < ApplicationRecord ...@@ -319,10 +319,6 @@ class Service < ApplicationRecord
nil nil
end end
def self.find_by_template
find_by(template: true)
end
# override if needed # override if needed
def supports_data_fields? def supports_data_fields?
false false
......
...@@ -2772,8 +2772,6 @@ Service ...@@ -2772,8 +2772,6 @@ Service
should return false by default should return false by default
#deprecation_message #deprecation_message
should be empty by default should be empty by default
.find_by_template
returns service template
#api_field_names #api_field_names
filters out sensitive fields filters out sensitive fields
......
...@@ -406,14 +406,6 @@ describe Service do ...@@ -406,14 +406,6 @@ describe Service do
end end
end end
describe '.find_by_template' do
let!(:service) { create(:service, template: true) }
it 'returns service template' do
expect(described_class.find_by_template).to eq(service)
end
end
describe '#api_field_names' do describe '#api_field_names' do
let(:fake_service) do let(:fake_service) do
Class.new(Service) do Class.new(Service) do
......
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