rebuilt the gem using ActiveRecord v3.0.0