metaprogramming by cloning ActiveRecord