Hi Doug Jolley
You can create a file like global_constants.rb in initializers
folder and declare all the global there ..
Or
Inside this same file create like
module GlobalConstant
Constantname = value
end
GlobalConstant.freeze
And access it like GlobalConstant::Constantname
The second one I have not tried.But thinking that it will work
Sijo K George
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---