Is it possible with RoR? In my case this shared Hashtable is a language translation table for several hundred terms, and does not need to be updated. I would like it to be shared in order to avoid loading it once for each session. Thanks, Marcus O. -- Posted via http://www.ruby-forum.com/.
Why don''t you define it as a constant and initialize it in environment.rb? -- Kent --- http://www.datanoise.com On 2/18/06, Marcus Ob <mrqzzz@yahoo.it> wrote:> Is it possible with RoR? > In my case this shared Hashtable is a language translation table for > several hundred terms, and does not need to be updated. > I would like it to be shared in order to avoid loading it once for each > session. > > Thanks, > Marcus O. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Kent Sibilev wrote:> Why don''t you define it as a constant and initialize it in > environment.rb?Hi Kent, sorry for my late reply, well, your suggestion works just fine, thank you! Best regards, Marcus Ob. -- Posted via http://www.ruby-forum.com/.