From 9745bcf7f137c2fca58cacf6963d7fa07710b644 Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 22 Dec 2012 17:35:59 +0800 Subject: [PATCH] Remove mysql --- Gemfile | 1 - config/initializers/nccu_ldap_connection.rb | 16 ---------------- 2 files changed, 17 deletions(-) delete mode 100644 config/initializers/nccu_ldap_connection.rb diff --git a/Gemfile b/Gemfile index 375667dc..aa6a2ba9 100644 --- a/Gemfile +++ b/Gemfile @@ -22,7 +22,6 @@ gem 'mini_magick' gem 'mongoid', '> 2.1', '< 3.0.0' gem 'mongoid-tree', :require => 'mongoid/tree' gem "mongo_session_store-rails3" -gem 'mysql2' gem 'nokogiri' diff --git a/config/initializers/nccu_ldap_connection.rb b/config/initializers/nccu_ldap_connection.rb deleted file mode 100644 index 00e03367..00000000 --- a/config/initializers/nccu_ldap_connection.rb +++ /dev/null @@ -1,16 +0,0 @@ -#encoding: utf-8 -require 'mysql2' - -$nccu_ldap_connection - -module NccuLdapConnection - BASE = 'ou=People,dc=nccu,dc=edu,dc=tw' - - def self.establish - $nccu_ldap_connection = Net::LDAP.new - $nccu_ldap_connection.port =LDAP_CONFIG["port"] - $nccu_ldap_connection.host = LDAP_CONFIG["host"] - $nccu_ldap_connection.authenticate(LDAP_CONFIG["authenticate_info"],LDAP_CONFIG["authenticate_pwd"]) - end - -end \ No newline at end of file