From a6dd963073bd841b14f46b41f715a7e404e83ce5 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 6 Oct 2023 17:41:31 -0300 Subject: [PATCH] =?UTF-8?q?refactor:=20eliminar=20m=C3=A9todo=20que=20nunc?= =?UTF-8?q?a=20se=20us=C3=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/metadata_belongs_to.rb | 4 ---- app/models/metadata_template.rb | 4 ---- 2 files changed, 8 deletions(-) diff --git a/app/models/metadata_belongs_to.rb b/app/models/metadata_belongs_to.rb index 204d7bed..7ea76725 100644 --- a/app/models/metadata_belongs_to.rb +++ b/app/models/metadata_belongs_to.rb @@ -80,10 +80,6 @@ class MetadataBelongsTo < MetadataRelatedPosts posts.find_by(post_id: value_was)&.post if value_was.present? end - def related_posts? - true - end - def related_methods @related_methods ||= %i[belongs_to belonged_to].freeze end diff --git a/app/models/metadata_template.rb b/app/models/metadata_template.rb index e40bd891..60bd7681 100644 --- a/app/models/metadata_template.rb +++ b/app/models/metadata_template.rb @@ -171,10 +171,6 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type, true end - def related_posts? - false - end - # Métodos relacionados # # @return [Array]