class Arkaan::Files::Document
a document is an uploaded file in the S3 clone application. @author Vincent Courtois <courtois.vincent@outlook.com>
Public Instance Methods
filename_unicity()
click to toggle source
# File lib/arkaan/files/document.rb, line 41 def filename_unicity existing = Arkaan::Files::Document.where( name: name, folder: folder, extension: extension, :id.ne => id ) errors.add(:name, 'uniq') unless existing.first.nil? end