spud_core 1.0.5 → 1.0.6
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.
- checksums.yaml +4 -4
- data/app/controllers/spud/application_controller.rb +0 -17
- data/lib/spud_core/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: 677ed4c0b702bdc268d08072bedbf44a870a903c
|
4
|
+
data.tar.gz: fe3ba6948f358686cabfc74a08691679c640ebcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9578c4ac41b7ded5a98e53b775a6e867aedcd90bae15f697278291141445bc30f8528971280056727453724bcf7d114099db928576b451e6eb4ad0c3bb51316
|
7
|
+
data.tar.gz: b502bafb9fb19ce1d1d3b41fb5977dd8a842d33bf8925f3ec04efd6ce5329e4e6cb8984c46f8b103444c304a1b4ed95354bd7ba76fa38fbb893a9e1664069519
|
@@ -3,9 +3,6 @@ class Spud::ApplicationController < ActionController::Base
|
|
3
3
|
helper_method :current_user_session, :current_user
|
4
4
|
around_filter :set_time_zone
|
5
5
|
|
6
|
-
if Spud::Core.multisite_mode_enabled
|
7
|
-
before_filter :multisite_caching
|
8
|
-
end
|
9
6
|
include Spud::ApplicationHelper
|
10
7
|
before_filter :to
|
11
8
|
|
@@ -71,18 +68,4 @@ class Spud::ApplicationController < ActionController::Base
|
|
71
68
|
ensure
|
72
69
|
Time.zone = old_time_zone
|
73
70
|
end
|
74
|
-
|
75
|
-
def multisite_caching
|
76
|
-
if Spud::Core.multisite_mode_enabled
|
77
|
-
@old_cache_directory = Rails.application.config.action_controller.page_cache_directory
|
78
|
-
if(@old_cache_directory.blank?)
|
79
|
-
@old_cache_directory = Rails.application.config.action_controller.page_cache_directory = File.join(Rails.root,'public')
|
80
|
-
end
|
81
|
-
site_config = Spud::Core.site_config_for_host request.host_with_port
|
82
|
-
|
83
|
-
self.class.page_cache_directory = File.join(@old_cache_directory.to_s,site_config[:short_name].to_s.downcase)
|
84
|
-
logger.debug "Cache directory set to: #{Rails.application.config.action_controller.page_cache_directory}"
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
71
|
end
|
data/lib/spud_core/version.rb
CHANGED