Sha256: 0ab339248acb93e6a7635b12ba9053fe88e0136630ed37417ff2b0defd893e4c
Contents?: true
Size: 376 Bytes
Versions: 7
Compression:
Stored size: 376 Bytes
Contents
class Note < ActiveRecord::Base attr_protected :created_at, :updated_at belongs_to :note_type belongs_to :noted_record, :polymorphic => true belongs_to :created_by, :class_name => 'Party', :foreign_key => 'created_by_id' def note_type_desc self.note_type.description end def summary (content.length > 20) ? "#{content[0..20]}..." : content end end
Version data entries
7 entries across 7 versions & 1 rubygems