[Rails] accessing a variable inside a plugin

Arnaud Garcia arnaud.garcia at sim.hcuge.ch
Thu Jul 27 09:32:18 GMT 2006


Hello,

I would like to load an Hash in my init.rb plugin file ... than  I would 
like to use this hash in my module ...

in my init.rb:

@anHash = load From file...



in mymodule:

module Amodule
    def myFunction
       #@anHash  ....
    end
end

How can I access to my hash in my plugin module function ?

thanks for this dummy question ;-)


Arnaud


More information about the Rails mailing list