I want to be able to dynamically create classes, for scripting outside my Rails app, that inherit from ActiveRecord.
I\'m stuck on something like this:
Nailed it:
def create_arec(table_name, &block) klass = Class.new(ActiveRecord::Base){self.table_name = table_name} klass.class_eval &block klass end
thanks @phoet