Changing Date Format - it works, but then I get a "uninitialized constant ActiveSupport"


When I change date formats via the following entry in environments.rb
it works fine. Web pages reflect the new date format.

The issue is when I run things like "./script/console", or
"./script/spec <filename>" I get a "NameError: uninitialized constant
ActiveSupport" issue. Any ideas how to solve this?

oh..I see there was an answer to this in a previous forum post that solves this:

looks like you've put the ActiveSupport line inside the block.
you need to put it at the end of your environment.rb file, else
ActiveSupport hasn't yet been loaded... hence the exception it raises.