This module contains instance methods
(Not documented)
# File lib/annotations/acts_as_annotation_source.rb, line 59 59: def annotation_source_name 60: %w{ display_name title name }.each do |w| 61: return eval("self.#{w}") if self.respond_to?(w) 62: end 63: return "#{self.class.name}_#{id}" 64: end
Helper method to get latest annotations
# File lib/annotations/acts_as_annotation_source.rb, line 51 51: def latest_annotations(limit=nil) 52: Annotation.find(:all, 53: :conditions => { :source_type => self.class.name, 54: :source_id => id }, 55: :order => "created_at DESC", 56: :limit => limit) 57: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.