Remove mysql
This commit is contained in:
parent
c6111460f5
commit
9745bcf7f1
1
Gemfile
1
Gemfile
|
@ -22,7 +22,6 @@ gem 'mini_magick'
|
||||||
gem 'mongoid', '> 2.1', '< 3.0.0'
|
gem 'mongoid', '> 2.1', '< 3.0.0'
|
||||||
gem 'mongoid-tree', :require => 'mongoid/tree'
|
gem 'mongoid-tree', :require => 'mongoid/tree'
|
||||||
gem "mongo_session_store-rails3"
|
gem "mongo_session_store-rails3"
|
||||||
gem 'mysql2'
|
|
||||||
gem 'nokogiri'
|
gem 'nokogiri'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
Reference in New Issue