June 2009

The Peoplenet

Now, it’s becoming even more vivid. The Internet has grown beyond its abstract boundaries and further into reality. Iran election has started as may be yet another election, peaceful and hopeful. For all parties. With the spread of voter fraud allegations, and suspicions over the way and speed by which the votes were counted, Iranian masses started to mobilize....

Multiple has_many_polymorphs in one model

I’m trying to define multiple polymorphic relations (has_many_polymorphs plugin) from a single parent to same children. Note has many viewersNote has many editorsViewers could be either Users or GroupsEditors could be either Users or GroupsPermission is the association model with note_id, viewer_id, viewer_type, editor_id, editor_type fields Everything works out as expect as long as I have only one has_many_polymorphs...