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:
parent
2ac91e4faf
commit
a6dd963073
2 changed files with 0 additions and 8 deletions
|
@ -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
|
||||||
|
|
|
@ -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]
|
||||||
|
|
Loading…
Reference in a new issue