Displaying 1 result from an estimated 1 matches for "account_initialization".
2008 Sep 06
6
Configuring custom library
...ed lib\AccountSystem like so:
"module AccountSystem
SINGLE = 1
MULTIPLE = 2
class << self
attr_accessor :account_system_type
end
end"
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
AccountSystem.account_system_type
But there it is empty!
However if I run "Ruby script\console" and type
AccountSystem.account_sys...