Forums » Development »
Constant in init.rb? [No => /lib/const.rb]
Added by luigifab ! over 10 years ago
Hi,
It appears that is possible with Redmine 2.x and Rails 3.2.
But with Redmine 1.4 and Rails 2.3, it does not work... [ ActionView::TemplateError (uninitialized constant ActionView::Base::CompiledTemplates::APIJS_ROOT) ]
It's me or it's normal?
(you will find my init.rb attached to this message)
Replies (2)
RE: Constant in init.rb? - Added by Martin Denizet (redmine.org team member) over 10 years ago
Hello Luigi,
How about declaring your constant in a library which you load later on?
Cheers,
RE: Constant in init.rb? - Added by luigifab ! over 10 years ago
:) I love you. It works....
I'm stupid.
For other, and for information:
- in my /init.rb: require 'const'
- in my /lib/const.rb: my constant declaration only
Thanks!