On Oct 21, 2005, at 2:11 PM, Craig Mason wrote:
> I''m having a problem setting constants in the
> config/environments/development.rb file.
>
> In 0.13.1 I used to have a line like this:
> PATH_FOO = "/foo/bar/"
> And I would be able to access this path anywhere.
>
> But after upgrading to 0.14.1 and adding
> PATH_FOO = "/foo/bar/"
> to config/environments/development.rb
>
> I get "uninitialized constant" errors.
>
> Is there something different about the config files or am I just
> missing
> something?
The issue is that the development.rb file is being evaluated inside
of a specific scope, so the constant is being added to the
Configuration class.
For now, try doing:
::PATH_FOO = "/foo/bar/"
instead. We''ll look into what it will take to restore the original
behavior.
- Jamis