On 6 Sep 2008, at 18:08, javinto wrote:
> > Hi, > > I've added a custom library called 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. > Did you restart your app after you added this ? Fred > 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_system_type I get the value of 1 as I would > expect. > > How can I achieve the same result within my controllers? > > I'm on rails 2.1.0/2.1.1 > > Thanks > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

