effective_resources 1.17.0 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/effective_resources/engine.rb +6 -4
- data/lib/effective_resources/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd950c2764b8af440fa475f4a99666009f28ea5c25f352d85d957ee2bf6ea5a3
|
|
4
|
+
data.tar.gz: 5fddb4399b3f8e7c8edb26c317dd561add0573bd1ba3dd7489c7f7fdf408b198
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88867e25b814d72729e9746d12e6d5719a326f55f4097f593b3f2c888eddee003052bf1bea46d7a14e2c4e41cbd7128ec70155030341a2e6227d3a93bd69a647
|
|
7
|
+
data.tar.gz: d8086166e74b60cd6efaebc32705cdffb7940bf70686ded3c12a00b1a7e620ea529211e689b144763f0128bd4ab7c88e2aad37be491513449fabbac27e16e071
|
|
@@ -21,7 +21,7 @@ module EffectiveResources
|
|
|
21
21
|
|
|
22
22
|
# Include acts_as_addressable concern and allow any ActiveRecord object to call it
|
|
23
23
|
initializer 'effective_resources.active_record' do |app|
|
|
24
|
-
|
|
24
|
+
app.config.to_prepare do
|
|
25
25
|
ActiveRecord::Base.extend(ActsAsArchived::Base)
|
|
26
26
|
ActiveRecord::Base.extend(ActsAsEmailForm::Base)
|
|
27
27
|
ActiveRecord::Base.extend(ActsAsTokened::Base)
|
|
@@ -38,7 +38,7 @@ module EffectiveResources
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
initializer 'effective_resources.cancancan' do |app|
|
|
41
|
-
|
|
41
|
+
app.config.to_prepare do
|
|
42
42
|
if defined?(CanCan::Ability)
|
|
43
43
|
CanCan::Ability.module_eval do
|
|
44
44
|
CRUD_ACTIONS = [:index, :new, :create, :edit, :update, :show, :destroy]
|
|
@@ -64,8 +64,10 @@ module EffectiveResources
|
|
|
64
64
|
|
|
65
65
|
# Register the flash_messages concern so that it can be called in ActionController
|
|
66
66
|
initializer 'effective_resources.action_controller' do |app|
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
app.config.to_prepare do
|
|
68
|
+
ActiveSupport.on_load :action_controller do
|
|
69
|
+
include(Effective::FlashMessages)
|
|
70
|
+
end
|
|
69
71
|
end
|
|
70
72
|
end
|
|
71
73
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_resources
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.17.
|
|
4
|
+
version: 1.17.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-04-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|