sitepress-rails 4.1.0 → 4.1.1
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/lib/sitepress/engine.rb +14 -18
- data/spec/dummy/log/development.log +0 -0
- data/spec/dummy/log/test.log +1812 -61189
- data/spec/dummy/tmp/local_secret.txt +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 268f05e4eecb9441d38b0540eb12499bc2c64a5c81279ae2cd0a192e7fae0be9
|
|
4
|
+
data.tar.gz: 87a7aed9ffea0e8f0ce51b5e609f1be691f4b2c76a34a2cc35a217adc16691d4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a3e3fa7fde24a2c5c5ed309be1d8aafdd0090feca0e7f9ebeb29915762b66e6adc2f33ad65f6da87e9c3db8d0e0dea84eaea782ecb6ece4d0220f9f067089731
|
|
7
|
+
data.tar.gz: 8e3b5da97c69419b9bbec400d79a452e369d023b89d7379ee04eb63cefce57d3333d91dac463e0f857f46ccc4c880c1664c7c420fb2d7a660077edb2b3880fc9
|
data/lib/sitepress/engine.rb
CHANGED
|
@@ -41,19 +41,25 @@ module Sitepress
|
|
|
41
41
|
# Helpers: autoloadable and available to controllers
|
|
42
42
|
# Collapsed so app/content/helpers/sample_helper.rb defines SampleHelper (not Helpers::SampleHelper)
|
|
43
43
|
site.helpers_path.expand_path.tap do |path|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
if path.exist?
|
|
45
|
+
app.paths["app/helpers"].push path
|
|
46
|
+
app.config.autoload_paths << path
|
|
47
|
+
app.config.eager_load_paths << path
|
|
48
|
+
Rails.autoloaders.main.push_dir(path)
|
|
49
|
+
Rails.autoloaders.main.collapse(path)
|
|
50
|
+
end
|
|
48
51
|
end
|
|
49
52
|
|
|
50
53
|
# Models: autoloadable
|
|
51
54
|
# Collapsed so models don't require namespace prefixes
|
|
52
55
|
site.models_path.expand_path.tap do |path|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
if path.exist?
|
|
57
|
+
app.paths["app/models"].push path
|
|
58
|
+
app.config.autoload_paths << path
|
|
59
|
+
app.config.eager_load_paths << path
|
|
60
|
+
Rails.autoloaders.main.push_dir(path)
|
|
61
|
+
Rails.autoloaders.main.collapse(path)
|
|
62
|
+
end
|
|
57
63
|
end
|
|
58
64
|
|
|
59
65
|
# Assets: available to Sprockets (no autoloading needed)
|
|
@@ -85,15 +91,5 @@ module Sitepress
|
|
|
85
91
|
app.config.cache_classes
|
|
86
92
|
end
|
|
87
93
|
end
|
|
88
|
-
|
|
89
|
-
# Set handler extensions once, after ActionView and all template engines are loaded.
|
|
90
|
-
initializer "sitepress.set_handler_extensions" do
|
|
91
|
-
ActiveSupport.on_load(:action_view) do
|
|
92
|
-
ActiveSupport.on_load(:after_initialize) do
|
|
93
|
-
Sitepress::Path.handler_extensions =
|
|
94
|
-
ActionView::Template::Handlers.extensions
|
|
95
|
-
end
|
|
96
|
-
end
|
|
97
|
-
end
|
|
98
94
|
end
|
|
99
95
|
end
|
|
File without changes
|