Remove unused errors on attachment methods
They aren't used since commit f8d78ec4a.
This commit is contained in:
@@ -3,10 +3,6 @@ module DocumentsHelper
|
|||||||
document.attachment_file_name
|
document.attachment_file_name
|
||||||
end
|
end
|
||||||
|
|
||||||
def document_errors_on_attachment(document)
|
|
||||||
document.errors[:attachment].join(", ") if document.errors.key?(:attachment)
|
|
||||||
end
|
|
||||||
|
|
||||||
def render_destroy_document_link(builder, document)
|
def render_destroy_document_link(builder, document)
|
||||||
if !document.persisted? && document.cached_attachment.present?
|
if !document.persisted? && document.cached_attachment.present?
|
||||||
link_to t("documents.form.delete_button"),
|
link_to t("documents.form.delete_button"),
|
||||||
|
|||||||
@@ -13,10 +13,6 @@ module ImagesHelper
|
|||||||
image.attachment_file_name
|
image.attachment_file_name
|
||||||
end
|
end
|
||||||
|
|
||||||
def image_errors_on_attachment(image)
|
|
||||||
image.errors[:attachment].join(", ") if image.errors.key?(:attachment)
|
|
||||||
end
|
|
||||||
|
|
||||||
def image_class(image)
|
def image_class(image)
|
||||||
image.persisted? ? "persisted-image" : "cached-image"
|
image.persisted? ? "persisted-image" : "cached-image"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user