lib/highrise/subject.rb in highrise-3.2.1 vs lib/highrise/subject.rb in highrise-3.2.3

- old
+ new

@@ -1,9 +1,10 @@ module Highrise class Subject < Base - def notes - Note.find_all_across_pages(:from => "/#{self.class.collection_name}/#{id}/notes.xml") + def notes(options={}) + options.merge!(:from => "/#{self.class.collection_name}/#{id}/notes.xml") + Note.find_all_across_pages(options) end def add_note(attrs={}) attrs[:subject_id] = self.id attrs[:subject_type] = self.label @@ -14,15 +15,17 @@ attrs[:subject_id] = self.id attrs[:subject_type] = self.label Task.create attrs end - def emails - Email.find_all_across_pages(:from => "/#{self.class.collection_name}/#{id}/emails.xml") + def emails(options={}) + options.merge!(:from => "/#{self.class.collection_name}/#{id}/emails.xml") + Email.find_all_across_pages(options) end - def upcoming_tasks - Task.find(:all, :from => "/#{self.class.collection_name}/#{id}/tasks.xml") + def upcoming_tasks(options={}) + options.merge!(:from => "/#{self.class.collection_name}/#{id}/tasks.xml") + Task.find(:all, options) end def label self.class.name.split('::').last end \ No newline at end of file