radiant_helper 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/radiant_helper.rb +4 -0
- data/lib/radiant_helper_response.rb +8 -5
- data/lib/tasks/rubyforge_config.yml +1 -1
- metadata +2 -2
data/lib/radiant_helper.rb
CHANGED
@@ -26,13 +26,16 @@ module Radiant
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def has_layout?
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
if Radiant::Helper.use_local_layouts?
|
30
|
+
ivar_cache("has_layout") do
|
31
|
+
unless self.body.nil?
|
32
|
+
b = self.body.downcase
|
33
|
+
return ((b.match("<html>") ? true : false) && (b.match("</html>") ? true : false))
|
34
|
+
end
|
35
|
+
return false
|
33
36
|
end
|
34
|
-
return false
|
35
37
|
end
|
38
|
+
true
|
36
39
|
end
|
37
40
|
|
38
41
|
def exception
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: radiant_helper
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2007-
|
6
|
+
version: 1.0.8
|
7
|
+
date: 2007-12-07 00:00:00 -05:00
|
8
8
|
summary: radiant_helper
|
9
9
|
require_paths:
|
10
10
|
- lib
|