Stating CONSTANT values in a Ruby on Rails application -
i using ruby on rails 3.0.7 , state somewhere constant values accessible classes in application. use mentioned constants mostly "global" validation purposes considering use implement authorization system.
where , how have state these constants? advice about?
why dont u create .rb file in
config/initilizers directory
and define constants there.
ps:-- need restart server access variables.
Comments
Post a Comment