line  7: define_method("create_#{model_name}") { |attrs|

Line 7 seems to be the problem line.

I think I want to do this:
  define_method("create_#{model_name}") { |attrs={}|

But I cannot. I can still use the defined method and not send it an
argument, but then Ruby complains.