moving requires to the .rb files

This commit is contained in:
Aaron Patterson 2010-06-30 09:36:42 -07:00
parent 062b83062f
commit 0b36eae450
2 changed files with 3 additions and 3 deletions

View File

@ -754,9 +754,6 @@ static VALUE rb_raise_mysql2_error(MYSQL *client) {
/* Ruby Extension initializer */
void Init_mysql2() {
rb_require("date");
rb_require("bigdecimal");
cBigDecimal = rb_const_get(rb_cObject, rb_intern("BigDecimal"));
cDate = rb_const_get(rb_cObject, rb_intern("Date"));
cDateTime = rb_const_get(rb_cObject, rb_intern("DateTime"));

View File

@ -1,4 +1,7 @@
# encoding: UTF-8
require 'date'
require 'bigdecimal'
require 'mysql2.so'
# = Mysql2