static_error_pages 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/static_error_pages/version.rb +1 -1
- data/lib/tasks/static_error_pages_tasks.rake +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34cffc73ed629580e036bab3ace48cddadfb6b61dc29d3cfc6afbaa7ffec9b28
|
4
|
+
data.tar.gz: 972858c8efd0e784e8b0fbf637372e4ddd76167955c7877545ccad92c29bbc8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '008c643cd0b89c33bdc5ba05a2509e7a57d21ba7cfb863a97af927e7251f4ccbbad0d328b1ed9bf49d103a7a101f8f084eb087614de98d692889a3230fb6bb7b'
|
7
|
+
data.tar.gz: becdcdd2f0ec9a952e9ea308a7fde07b598e9043e7e918afccd2b9d32bf5f75b9648a8cb0f32d3f7beb46c356b8acae20626e99203dd755e82886c435fbf1f1e
|
@@ -8,7 +8,7 @@ namespace :assets do
|
|
8
8
|
task error_pages: :environment do
|
9
9
|
layout = Rails.application.config.static_error_pages.layout
|
10
10
|
Rails.application.config.static_error_pages.pages.each do |file|
|
11
|
-
if Rails.
|
11
|
+
if Rails.version >= '7.0.0'
|
12
12
|
out = ApplicationController.renderer.render("error_pages/#{file.remove('.html')}", layout: layout)
|
13
13
|
else
|
14
14
|
out = ApplicationController.renderer.render("error_pages/#{file}", layout: layout)
|