Created
June 1, 2010 22:40
-
-
Save oren/421635 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
how to open the Tag class? | |
class Tag < ActiveRecord::Base | |
def delete_taggings_of_client(client_id) | |
self.taggings.each do |t| | |
key = TranslationKey.find(t.taggable_id) | |
t.destroy if key.client_id == client_id | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment