bullet_train-super_load_and_authorize_resource 1.8.1 → 1.8.3
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: e5a8ed55bb2fd1ee7ef5c52e08289d546b92accdaf31f01aab14e5aaf690fc16
|
4
|
+
data.tar.gz: 48936ba21e1b0517c0a5cc50e9f72b59e86393cbadf9d2c81716413645cd58d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eccf0e53e5ce70161f72f0d3ad4577a270db05fad322d8a7645d9f9d6bbef8907818f82d63eb90bf92de48632f01d9ad566e4e90f6324a1458b99affb19a56ea
|
7
|
+
data.tar.gz: 92bbd7060015f05f26fc4faee77ca07333cbf488aed1ea0b8becb878749a8aa1c2bd26d827dc2f4809d8dc36965dd693574aff97c560260c306db803763681a1
|
@@ -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.3
|
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-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|