Rails 3 initialize module, running cucumber

I have this in my environment file, I get “The error occurred while
evaluating nil.[] (NoMethodError)” on the S3Config.key= line when
cucumber. Why is it not loading up the module when running cucumber?

module S3Config
mattr_accessor :key
mattr_accessor :sec

class ActiveRecord::Base
include S3Config
extend DynamicMethods

S3Config.key = AppConfig[‘access_key_id’]
S3Config.sec = AppConfig[‘secret_access_key’]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs