Monthly Archives: November 2009

Beware the Class.new dragons

When using this neat snippet from Dr Nic for testing a plugin I use internally, I came across the behavior described by Avdi. The proposed solution works great! A single line modification to Dr Nic’s class ensures it works with class_inheritable_accessor from ActiveSupport. def create_class(class_name, superclass, &block) klass = Class.new superclass klass.instance_eval &block Object.const_set class_name, [...]

Pelosi on behalf of DCCC asked me for money, I said NO!

Basically what kos said. I’m not funding Blue Dogs. Not interested. So here’s the bottom line — skip any donations to the DCCC. Their first priority is incumbent retention, and they’re (necessarily) issue agnostic. They’ll be dumping millions into defending these seats. Instead, give to those elected officials who best reflect your values. If you’re [...]