Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment