5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 17:26:21 +00:00

refactor: eliminar método que nunca se usó

This commit is contained in:
f 2023-10-06 17:41:31 -03:00
parent 2ac91e4faf
commit a6dd963073
No known key found for this signature in database
2 changed files with 0 additions and 8 deletions

View file

@ -80,10 +80,6 @@ class MetadataBelongsTo < MetadataRelatedPosts
posts.find_by(post_id: value_was)&.post if value_was.present? posts.find_by(post_id: value_was)&.post if value_was.present?
end end
def related_posts?
true
end
def related_methods def related_methods
@related_methods ||= %i[belongs_to belonged_to].freeze @related_methods ||= %i[belongs_to belonged_to].freeze
end end

View file

@ -171,10 +171,6 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
true true
end end
def related_posts?
false
end
# Métodos relacionados # Métodos relacionados
# #
# @return [Array] # @return [Array]