search for: appconst

Displaying 1 result from an estimated 1 matches for "appconst".

Did you mean: app_const
2007 Oct 04
0
Module + Constant Issue
...reate a new Rails app, e. g. $ rails constant 2) Edit the environment.rb file to add your own module with configuration constant default values with the idea you could "override" these by specifying them in the specific environment file: At the end of config/environment.rb, add: module AppConstants IMPORTANT_VALUE = "x" unless defined?(AppConstants::IMPORTANT_VALUE) end 3) Create a Ruby module in the file lib/app_constants/list.rb, noting the "top level" name of the module matches the one specified in the environment file: module AppConstants module List LIST...