Sha256: 816dccc666be9bc2b77fd81b2b2271ae185c5f1657840cb55246d3189e74912b
Contents?: true
Size: 828 Bytes
Versions: 1
Compression:
Stored size: 828 Bytes
Contents
$: << File.dirname(File.expand_path(__FILE__)) # Try to load local version of Picnic if possible (for development purposes) alt_picic_paths = [] alt_picic_paths << File.dirname(File.expand_path(__FILE__))+"/../../../picnic/lib" alt_picic_paths << File.dirname(File.expand_path(__FILE__))+"/../../vendor/picnic/lib" begin require 'active_record' rescue LoadError require 'rubygems' require 'active_record' end if alt_picic_paths.any?{|path| File.exists? "#{path}/picnic.rb" } alt_picic_paths.each{|path| $: << path} require 'picnic' else require 'rubygems' # make things backwards-compatible for rubygems < 0.9.0 if Object.method_defined?(:require_gem) alias gem require_gem end require 'picnic' end # used for serializing user extra_attributes (see #service_validate in views.rb) require 'yaml'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubycas-server-0.7.1.1 | lib/casserver/environment.rb |