Class: Note

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

Instance Method Summary collapse

Instance Method Details

#note_type_descObject



8
9
10
# File 'app/models/note.rb', line 8

def note_type_desc
  self.note_type.description
end

#summaryObject



12
13
14
# File 'app/models/note.rb', line 12

def summary
  (content.length > 20) ? "#{content[0..20]}..." : content
end