Skip to content

Commit 18ebc87

Browse files
author
El Draper
committed
fixing the Merb 0.9.3 cache issue at long last within Feather, as trying to get people to use only Merb 0.9.2 is becoming difficult - this can be removed once Merb 0.9.4 is released (the cache issue is fixed within edge)
1 parent 32187e0 commit 18ebc87

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

app/controllers/application.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ class Application < Merb::Controller
55
before :get_settings
66
before :load_plugins
77
before :fire_before_event
8+
before :fix_cache_issue_with_merb_093
9+
10+
##
11+
# This just makes sure that params[:format] isn't null, to get around the merb 0.9.3 cache issue
12+
def fix_cache_issue_with_merb_093
13+
params[:format] = [] if params[:format].nil?
14+
end
815

916
##
1017
# This grabs settings

0 commit comments

Comments
 (0)