Skip to content

Commit

Permalink
Switch to file_store as cache store for syncronisation purposes with …
Browse files Browse the repository at this point in the history
…passenger. Closes refineryGH-462
  • Loading branch information
parndt committed Mar 8, 2011
1 parent 9ca153f commit 46f5ef2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lib/refinery/application.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'tmpdir'

module Refinery
module Application
class << self
Expand Down Expand Up @@ -29,7 +31,7 @@ def self.method_missing(method_sym, *arguments, &block)
base.config.filter_parameters += [:password, :password_confirmation]

# Specify a cache store to use
base.config.cache_store = :memory_store
base.config.cache_store = :file_store, File.join(Dir.tmpdir, base.name.to_s.gsub(':', File::SEPARATOR))

# Include the refinery controllers and helpers dynamically
base.config.to_prepare do
Expand Down

0 comments on commit 46f5ef2

Please sign in to comment.