Floppy-amee 0.4.30 → 0.4.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|