Created
December 8, 2010 09:30
-
-
Save pupca/733081 to your computer and use it in GitHub Desktop.
This file contains hidden or 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))] |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Person Load (0.4ms) SELECT * FROM
peopleLIMIT 1Tag Load (0.2ms) SELECT * FROM
tagsWHERE (tags.person_id = 1 AND (person_id IN('--- !ruby/object:Proc {}')))