| Class | Note |
| In: |
app/models/note.rb
|
| Parent: | ActiveRecord::Base |
| NOTEABLES | = | ["Grouping", "Student", "Assignment"] |
# File app/models/note.rb, line 18
18: def self.noteables_exist?
19: NOTEABLES.each do |classname|
20: if !(Kernel.const_get(classname).all.empty?)
21: return true
22: end
23: end
24: return false
25: end
# File app/models/note.rb, line 14
14: def format_date
15: return I18n.l(created_at, :format => :long_date)
16: end