Skip to content

Instantly share code, notes, and snippets.

@quirkey
Forked from mrb/gist:16141
Created October 10, 2008 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quirkey/16142 to your computer and use it in GitHub Desktop.
Save quirkey/16142 to your computer and use it in GitHub Desktop.
TherapistReport.send(:with_exclusive_scope) {
@last_tr = TherapistReport.find(:all, :conditions => ["report_id = ? AND therapist_id = ? AND report.territory_id = ? ", self.report.previous, self.therapist_id, self.report.territory_id], :include => [:report])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment