rails_error_pages 1.0.1 → 1.0.2
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 +8 -8
- data/lib/generators/error_pages/error_pages_generator.rb +9 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmEwODFlNDNhY2FlMzQ3MDMyZThkM2MxZjE1YjEwN2NjZjM5ZmQyYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDAzMTA5M2UwMjBmY2Q3MWQwOGNmNWY2YTcxY2U2ZGVjMWY3ODdmNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODliZWNlNTg0NTIxZWQ0YWY2YTFkMGM4MGU1YTY0MDc0ZWQ2ZDYzNmI0ODlk
|
10
|
+
ZjgzY2Y4Y2Y1M2NhNGE5ZDFkMzljYmQzNmUwMzc1YzAzMzU2MTk2NDZiZmQ3
|
11
|
+
NGQzZWE4ZTFlNTFhNDM3OWVmNTBhMmIyYTk2ZTJjNjc2YjBmOWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjFhNjRkMGNhODQ4ZmRhZmRjYjE1ZjU4OTlkMmRhZjg0NTNjNTJhNDI4NGI4
|
14
|
+
Yzk0YTQzMGMxNjY0NDRmZWQwNzRhYTNhMTQ5OThmODVlYjI3ZTlhYmI4OTQy
|
15
|
+
MmFhZGFmMWM2MWIzMzA4NWI5YzA0NjM4NTU0OTE1ODVhYTNmYWY=
|
@@ -13,4 +13,13 @@ class ErrorPagesGenerator < Rails::Generators::Base
|
|
13
13
|
def add_exceptions_app
|
14
14
|
application %Q{config.exceptions_app = self.routes}
|
15
15
|
end
|
16
|
+
|
17
|
+
def copy_controller
|
18
|
+
copy_file "errors_controller.rb", "app/controllers/errors_controller.rb"
|
19
|
+
end
|
20
|
+
|
21
|
+
def copy_views
|
22
|
+
directory "errors", "app/views/errors"
|
23
|
+
end
|
24
|
+
|
16
25
|
end
|