caboose-cms 0.5.41 → 0.5.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose/page_cacher.rb +2 -2
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2NmZDM4ZmQ0NDdjOTZlOTVhYWU3OTM5YjkyMTQwNTBlMGFjNDc2ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmZiNmI2MzI3MjUxZjUwMDIyZTJiN2Q5MDk2OTVlYjYzOTgxMDc5Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODEwMjA4YzQxMzliM2M4NjdmZTk5NjE3NDlkMzQ5NTU4YzMwZjRhZThjZDlh
|
10
|
+
MTRiZWMzMDliM2U3MDkxNWI0YThjOTJkN2I0MTBlZWMzOWI4NGQzNjRlOTdk
|
11
|
+
MzYyYmE1ZjIxZTAxNzdkYzY1ZmM0ZmY5NjU0MzBhYTBkZjNlM2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YzcwYTExZDdmMjBmMTgyMjExNWFlOWJkMWFhMzcwOGViNDQ1OWUxNTU5ZGE0
|
14
|
+
OWQ3ZmVkZDk5YzQxNDBiODgyYWI5OGRmMTJmZGVjMDg3YTJlZWU2MDM5MWQ1
|
15
|
+
NThhM2MyYTI0OTljZmY2MjU2OWE2ZjY2OGZmNzM0NjQyZmVhYWY=
|
@@ -8,7 +8,7 @@ module Caboose
|
|
8
8
|
end
|
9
9
|
|
10
10
|
# Make sure all pages are cached
|
11
|
-
query = ["select id from pages where id not in (select distinct(page_id) from page_cache"]
|
11
|
+
query = ["select id from pages where id not in (select distinct(page_id) from page_cache)"]
|
12
12
|
rows = ActiveRecord::Base.connection.execute(ActiveRecord::Base.send(:sanitize_sql_array, query))
|
13
13
|
if rows
|
14
14
|
rows.each{ |row| self.delay.cache(row['id']) }
|
@@ -97,7 +97,7 @@ module Caboose
|
|
97
97
|
elsif File.file?("#{Caboose.root}/app/views/caboose/blocks/_#{bt.name}.html.erb" ) then f = "#{Caboose.root}/app/views/caboose/blocks/_#{bt.name}.html.erb"
|
98
98
|
elsif File.file?("#{Caboose.root}/app/views/caboose/blocks/_#{bt.field_type}.html.erb" ) then f = "#{Caboose.root}/app/views/caboose/blocks/_#{bt.field_type}.html.erb"
|
99
99
|
end
|
100
|
-
f = File.read(f)
|
100
|
+
f = (f && f.to_s.strip.length > 0 ? File.read(f) : '')
|
101
101
|
end
|
102
102
|
f.gsub!(/block\.partial\((.*?),(.*?)\)/ , 'render :partial => \1')
|
103
103
|
f.gsub!(/block\.render\((.*?),(.*?)\)/ , 'render_block_type(block, \1, page, view, controller_view_content, modal, empty_text, editing, css, js, csrf_meta_tags, csrf_meta_tags2, logged_in_user, site)')
|
data/lib/caboose/version.rb
CHANGED