caboose-cms 0.9.46 → 0.9.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/caboose/posts_controller.rb +2 -0
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ced7d6180dbf09389865221d0adb11df19c5210a
|
4
|
+
data.tar.gz: cd394f3842aa057091d39f3256d97f8ce11a6500
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dd89ab972a1da5e0123a938f84d8561dfdac153d800d52ad0e1d3bf1ea2be7a05eed06c83c0dbeb0d54f3c29bdef67ed937ecc75581ad4d3f16944d1cac2f61
|
7
|
+
data.tar.gz: 66664249934510812b2a1847f32742f5f0544144c65f3d6ca88844fec9a5fefcbaaea9e79cf92585cc320a4623d2034f0dde005ad125c484d91310e459fc9c2c
|
@@ -18,10 +18,12 @@ module Caboose
|
|
18
18
|
|
19
19
|
if params[:id]
|
20
20
|
@post = Post.where(:id => params[:id]).first
|
21
|
+
render :layout => "caboose/application"
|
21
22
|
else
|
22
23
|
# Find the page with an exact URI match
|
23
24
|
uri = "#{params[:year]}/#{params[:month]}/#{params[:day]}/#{params[:slug]}"
|
24
25
|
@post = Post.where(:site_id => @site.id, :uri => request.fullpath).first
|
26
|
+
render :layout => "caboose/application"
|
25
27
|
end
|
26
28
|
render :file => "caboose/extras/error404" and return if @post.nil?
|
27
29
|
|
data/lib/caboose/version.rb
CHANGED