wagon_rails 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wagon_rails/version.rb +1 -1
- data/templates/application_controller.rb +1 -2
- 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: 74b408eb26fb8b7382a1f5a644176575a4836df1
|
4
|
+
data.tar.gz: 2d147e5d22d8963b7400029632e4fa453654b225
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5314188d3f28d5c6733ba6962ccce1e32a5ab68bddd73c341ae04e5ab56d2c935c2fc9313e21e2803b7d3f5e2cdb1df2906ab073b1b6f081d3d2fccbe1ecc1bc
|
7
|
+
data.tar.gz: dce142276746b64748b26b7b583dd8a3a0f9eff8c8c3410d09d7bca46858a3ff10510c150d0a72c841ead5009431a5505889f15bf833c7e2656d6ab956a670f5
|
data/lib/wagon_rails/version.rb
CHANGED
@@ -3,7 +3,6 @@ class ApplicationController < ActionController::Base
|
|
3
3
|
before_filter :authenticate_user!, unless: :pages_controller?
|
4
4
|
|
5
5
|
include Pundit
|
6
|
-
protect_from_forgery
|
7
6
|
after_action :verify_authorized, except: :index, unless: :devise_or_pages_controller?
|
8
7
|
after_action :verify_policy_scoped, only: :index, unless: :devise_or_pages_controller?
|
9
8
|
|
@@ -13,7 +12,7 @@ class ApplicationController < ActionController::Base
|
|
13
12
|
|
14
13
|
def user_not_authorized
|
15
14
|
flash[:error] = I18n.t('controllers.application.user_not_authorized', default: "You can't access this page.")
|
16
|
-
redirect_to(
|
15
|
+
redirect_to(root_path)
|
17
16
|
end
|
18
17
|
|
19
18
|
def devise_or_pages_controller?
|