Sha256: 54963ea0981c3e3cc88215e85c9652c90903b99204681525c463dc949468212a
Contents?: true
Size: 424 Bytes
Versions: 4
Compression:
Stored size: 424 Bytes
Contents
module Cone module Rails class Railtie < ::Rails::Railtie config.before_initialize do # clear the assets cache otherwise routes don't get reloaded on server restart assets_cache = ::Rails.application.config.assets[:cache_store][1] ActiveSupport::Cache::FileStore.new(assets_cache).clear if File.directory?(assets_cache) end end end class Engine < ::Rails::Engine end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cone-0.0.4 | lib/cone.rb |
cone-0.0.3 | lib/cone.rb |
cone-0.0.2 | lib/cone.rb |
cone-0.0.1 | lib/cone.rb |