mosaic-errors 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/generators/errors_generator.rb +3 -3
- data/lib/mosaic/errors/version.rb +1 -1
- metadata +1 -1
@@ -2,9 +2,9 @@ class ErrorsGenerator < Rails::Generators::NamedBase
|
|
2
2
|
source_root File.expand_path('../templates/', __FILE__)
|
3
3
|
|
4
4
|
def setup
|
5
|
-
route "/404
|
6
|
-
route "/422
|
7
|
-
route "/500
|
5
|
+
route "match '/404', :to => 'errors#not_found'"
|
6
|
+
route "match '/422', :to => 'errors#unprocessable_entity'"
|
7
|
+
route "match '/500', :to => 'errors#internal_server_error'"
|
8
8
|
|
9
9
|
application "config.exceptions_app = self.routes"
|
10
10
|
|