Hmm.
This should work in any name_extension.rb
If you are running Radiant 0.8.0 the first require will work. If you
are running 0.7.1 the first should fail with a MissingSourceFile
exception and then try the second require.
Unless I've only run into this in my setup and something different
happens with a different setup.
Can you pastie any error messages?
Jim Gay
http://www.saturnflyer.com
On Jun 18, 2009, at 12:27 PM, Daniel O'Connell wrote:
Jim and anyone else that can answer,
Could you please walk me through the steps to using this in an
extension in a production environment:
<pre>
begin
require_dependency 'application_controller'
rescue MissingSourceFile
require_dependency 'application'
end
</pre>
This is what I have already tried in copy_move ( which only required
'application_controller' ).
Adding at the beginning of file, restart server.
Adding at the beginning of file, commenting out <require_dependency
'application_controller'> restart server.
Each time the mongrel server failed to start, giving various errors.
Thanks in advance,
-Daniel
_______________________________________________
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant