spud_cms 0.9.13 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,8 @@ class PagesController < ApplicationController
3
3
 
4
4
  respond_to :html
5
5
 
6
+ before_filter :set_default_content_type
7
+
6
8
  after_filter({:only => [:show]}) do |c|
7
9
  if Spud::Cms.cache_mode == :full_page && @page && @page.is_private? == false
8
10
  c.cache_page(nil, nil, false)
@@ -79,4 +81,10 @@ private
79
81
  Spud::Cms.template_404 ? render(Spud::Cms.template_404,:status => 404) : render(:text=>nil,:status => 404)
80
82
  end
81
83
 
84
+ def set_default_content_type
85
+ if params[:format].blank?
86
+ request.format = :html
87
+ end
88
+ end
89
+
82
90
  end
@@ -1,5 +1,5 @@
1
1
  module Spud
2
2
  module Cms
3
- VERSION = "0.9.13"
3
+ VERSION = "0.9.14"
4
4
  end
5
5
  end