Complete for 229 check.

This commit is contained in:
Matt Fu committed 2012-02-24 19:07:47 +08:00
1 parent 678f1eabef
commit 3209f9aa27
10 files changed
+187 -5

No files matched your search

-3
View File
@@ -141,7 +141,4 @@ Devise.setup do |config|
# end
# manager.default_strategies(:scope => :user).unshift :twitter_oauth
# end
config.warden do |manager|
manager.default_strategies.unshift :check_nccu_ldap
end
end
@@ -0,0 +1,14 @@
#encoding: utf-8
require 'mysql2'
mid_host = {
:host => '127.0.0.1', #mruling.nccu.edu.tw
:port => 8005,
:username => "root",
:password => "a3G6yWd9",
:database => "RSS23_NCCU_MIDDLE",
:encoding => "UTF8"
}
MID_CLIENT = Mysql2::Client.new(mid_host)