Wrap and then unwrap objects of type ActiveRecord::Base