Floppy-amee 0.4.30 → 0.4.31
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/amee/version.rb +1 -1
- data/rails/init.rb +2 -2
- metadata +1 -1
data/lib/amee/version.rb
CHANGED
data/rails/init.rb
CHANGED
@@ -5,9 +5,9 @@ require 'amee/rails'
|
|
5
5
|
amee_config = "#{RAILS_ROOT}/config/amee.yml"
|
6
6
|
if File.exist?(amee_config)
|
7
7
|
# Load config
|
8
|
-
AMEE_CONFIG = YAML.load_file(amee_config)[RAILS_ENV]
|
8
|
+
$AMEE_CONFIG = YAML.load_file(amee_config)[RAILS_ENV]
|
9
9
|
# Create a global AMEE connection that we can use from anywhere in this app
|
10
|
-
$amee = AMEE::Connection.new(AMEE_CONFIG['server'], AMEE_CONFIG['username'], AMEE_CONFIG['password'])
|
10
|
+
$amee = AMEE::Connection.new($AMEE_CONFIG['server'], $AMEE_CONFIG['username'], $AMEE_CONFIG['password'])
|
11
11
|
# Authenticate now to get it out of the way and to check settings
|
12
12
|
$amee.authenticate
|
13
13
|
else
|