lib/picnic/authentication.rb in picnic-0.6.0 vs lib/picnic/authentication.rb in picnic-0.6.1
- old
+ new
@@ -108,12 +108,13 @@
# placed in the /public subdirectory (CSS files, JavaScripts, images, etc.). The
# public directory does not require CAS authentication, so anyone can access its
# contents.
#
module Cas
- require 'camping/db'
- require 'camping/session'
-
+ def self.include
+ require 'camping/db'
+ require 'camping/session'
+ end
$: << File.dirname(File.expand_path(__FILE__))+"/../../../rubycas-client2/lib" # for development
require 'rubycas-client'
# app = Kernel.const_get self.name.gsub(/^(\w+)::.+$/, '\1')
\ No newline at end of file