I've added a custom library called lib\AccountSystem like so:
SINGLE = 1
MULTIPLE = 2
class << self
Now I wanna configure
AccountSystem.account_system_type=AccountSystem::SINGLE in one app. I
used an initializer: config/initializers/account_initialization.rb
where I put this line in.
I included my AccountSystem in the ApplicationController.
So now I'd like to check within my controllers the value of
But there it is empty!
However if I run "Ruby script\console" and type
AccountSystem.account_system_type I get the value of 1 as I would
How can I achieve the same result within my controllers?
I'm on rails 2.1.0/2.1.1