Class: Document

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/document.rb

Overview

Instance Method Summary collapse

Instance Method Details

#nullify_blank_document_file_nameObject



20
21
22
# File 'app/models/document.rb', line 20

def nullify_blank_document_file_name
	self.document_file_name = nil if document_file_name.blank?
end

#to_sObject



24
25
26
# File 'app/models/document.rb', line 24

def to_s
	title
end