Created
December 8, 2010 09:30
-
-
Save pupca/733081 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
has_many :tags, :conditions => ["person_id IN(?)", (self.accounting_sharing_with.nil? ? self.id : (self.accounting_sharing_with + self))] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Person Load (0.4ms) SELECT * FROM
people
LIMIT 1Tag Load (0.2ms) SELECT * FROM
tags
WHERE (tags
.person_id = 1 AND (person_id IN('--- !ruby/object:Proc {}')))