With a Rails 2.3.18 app (including the simple changes needed for using Bundler), a simple config/application.yml, and Figaro in the Gemfile, within script/console I get nil values for all the keys set in application.yml. Rubygems.org specifies no dependencies on either Ruby or Rails version for Figaro, so I assume this should work.
With a Rails 2.3.18 app (including the simple changes needed for using Bundler), a simple
config/application.yml
, and Figaro in the Gemfile, withinscript/console
I get nil values for all the keys set inapplication.yml
. Rubygems.org specifies no dependencies on either Ruby or Rails version for Figaro, so I assume this should work.I created this test app by:
rails figaro-rails2-test
require
all gems at app boot time)bundle install
script/console
to drop into console and examineFigaro.env.test_key
(nil),ENV['test_key']
(also nil), etc.Further, executing
Figaro.load
in console raisesNotImplementedError
.It may be that I shouldn't expect this to work with an older Ruby/Rails version, but if that's the case it would be good to note that on Rubygems.