bullet_train-super_load_and_authorize_resource 1.8.0 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88a315e23c4776c58bb0471e0c0bc4a260a6785cff7b6b678a6b5cb4b73f3d83
|
4
|
+
data.tar.gz: ae3c6596f6ebda8a0f74a4fc0897c26f83240dda648e43ab9d908c20eda2c4cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fd0db05e65d8c1c5b17a295b778ebdfe18bb475ab7e3715dd9e2b0b374abd2bd134fc3c94b915a5db10e499e85b67e0384012cc114269aafa45a1b8c145895c
|
7
|
+
data.tar.gz: f619b9b142591202592bf22bab95b07959bf127442ec5995e00cda598ff7d42494ba66c114d39cd02d224481db463e24bc8bfcd8851afba3b390148995dcc7e1
|
@@ -173,4 +173,31 @@ module BulletTrain::LoadsAndAuthorizesResource
|
|
173
173
|
end
|
174
174
|
end
|
175
175
|
end
|
176
|
+
|
177
|
+
# These are methods that `account_load_and_authorize_resource` assumes will be present on any controllers
|
178
|
+
# that call that method. In order to use the new Rails default for `config.raise_on_missing_callback_actions = true`
|
179
|
+
# we need to have these methods defined on any controller that includes this module. We define them here so
|
180
|
+
# that they will exist at the time that `account_load_and_authorize_resource` is called. We assume that controllers
|
181
|
+
# will implement real versions of these methods (if needed) to override these dummy methods. We raise, instead of
|
182
|
+
# just defining empty methods, so that if these methods are ever reached it will be more obvious what's happening
|
183
|
+
# that it would be if an empty method were called and it appears that nothing happens.
|
184
|
+
def reorder
|
185
|
+
raise "This is a template method that needs to be implemented by controllers including LoadsAndAuthorizesResource."
|
186
|
+
end
|
187
|
+
|
188
|
+
def new
|
189
|
+
raise "This is a template method that needs to be implemented by controllers including LoadsAndAuthorizesResource."
|
190
|
+
end
|
191
|
+
|
192
|
+
def edit
|
193
|
+
raise "This is a template method that needs to be implemented by controllers including LoadsAndAuthorizesResource."
|
194
|
+
end
|
195
|
+
|
196
|
+
def create
|
197
|
+
raise "This is a template method that needs to be implemented by controllers including LoadsAndAuthorizesResource."
|
198
|
+
end
|
199
|
+
|
200
|
+
def update
|
201
|
+
raise "This is a template method that needs to be implemented by controllers including LoadsAndAuthorizesResource."
|
202
|
+
end
|
176
203
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-super_load_and_authorize_resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|