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: 224b9ffe71080a2d1b01c0ea1fa5b302d5b99f11a9e6b1d2ae0992a865f215ac
4
- data.tar.gz: 36fa2c33b0fb4f9f77115c62f608f92d14700623192dd68a3302451b1b8e626e
3
+ metadata.gz: 88a315e23c4776c58bb0471e0c0bc4a260a6785cff7b6b678a6b5cb4b73f3d83
4
+ data.tar.gz: ae3c6596f6ebda8a0f74a4fc0897c26f83240dda648e43ab9d908c20eda2c4cc
5
5
  SHA512:
6
- metadata.gz: aca1894e387435905b9b6e64c7daf0180aa3de6935d334aec8de77dbd1b1a8ce0a839feba58133894e1e9df77c67ebc5966a09a37ea25a130f21d0f9b5caf9d8
7
- data.tar.gz: 29502f1972dc0c7022b5e36da04b59dafdabacaf865aaa13932e0749963a4ad2ad9c08e7e3753021152f821fd15614e05f2e35685ace9879573b9d3f753d0522
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
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module SuperLoadAndAuthorizeResource
3
- VERSION = "1.8.0"
3
+ VERSION = "1.8.2"
4
4
  end
5
5
  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.0
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-10-18 00:00:00.000000000 Z
11
+ date: 2024-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cancancan