radiant_helper 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/radiant_helper +2 -0
- data/lib/radiant_helper_page.rb +4 -1
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +1 -1
data/bin/radiant_helper
CHANGED
@@ -16,6 +16,8 @@ First we need to do a little configuration. We need to know a few details about
|
|
16
16
|
|
17
17
|
If you are not using the application_configuration (loser), then you can configure this parameter by setting the constant 'RADIANT_SERVER_URL'.
|
18
18
|
|
19
|
+
You'll also need to set the 'radiant_server_time_out' config parameter so that your Rails app doesn't sit and spin waiting for a Radiant server that may be down.
|
20
|
+
|
19
21
|
Now your Rails application has all it needs to start including dynamic sections of pages from your Radiant CMS.
|
20
22
|
|
21
23
|
2.) Usage
|
data/lib/radiant_helper_page.rb
CHANGED
@@ -27,7 +27,10 @@ module Radiant
|
|
27
27
|
rescue Radiant::Helper::InvalidConfigurationError => e
|
28
28
|
raise e
|
29
29
|
rescue Exception => e
|
30
|
-
|
30
|
+
unless RAILS_ENV == 'test'
|
31
|
+
Radiant::Helper.logger.error("There was an error connecting to Radiant at: #{url}")
|
32
|
+
Radiant::Helper.logger.error(e)
|
33
|
+
end
|
31
34
|
return Radiant::Helper::Response.new(url, 404)
|
32
35
|
end
|
33
36
|
end
|