eac_active_scaffold 0.1.0 → 0.2.0
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: 15eeb7cd52209dcd7b1792f1015873f23a5625bc81f87bf1750683a0e5fb1f8b
|
4
|
+
data.tar.gz: ca25f753b424546985e77114b6b6d10397b98db3083ef3010ddee92f8b820b5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 816e9542df81682cd1ffeaeee35f94654f26fed39a71dd250e9e3a45bba53a4b1b947501c69d13f37f58bfb910215c4ef6142a55d2d527c48d4a419e5109e7d5
|
7
|
+
data.tar.gz: 0555a674d110339cb5d551bd72314bc6ceb204dee8e5ed657adb968270b5871e3df3de771eaad44b750905b9889a5b9ea6f399cd26a531c83218dd601cf5cee2
|
@@ -3,22 +3,16 @@
|
|
3
3
|
module EacActiveScaffold
|
4
4
|
module Patches
|
5
5
|
module ActionDispatch
|
6
|
-
|
6
|
+
ACTIVE_SCAFFOLD_CONCERNS = {
|
7
|
+
active_scaffold: -> { ::ActiveScaffold::Routing::Basic.new(association: true) },
|
8
|
+
active_scaffold_association: -> { ::ActiveScaffold::Routing::Association.new }
|
9
|
+
}.freeze
|
7
10
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
def active_scaffold_concern_set
|
14
|
-
return if @concerns.key?(active_scaffold_concern_name)
|
15
|
-
|
16
|
-
concern(active_scaffold_concern_name,
|
17
|
-
::ActiveScaffold::Routing::Basic.new(association: true))
|
18
|
-
end
|
19
|
-
|
20
|
-
def active_scaffold_concern_name
|
21
|
-
ACTIVE_SCAFFOLD_DEFAULT_CONCERN_NAME
|
11
|
+
ACTIVE_SCAFFOLD_CONCERNS.each do |name, proc|
|
12
|
+
define_method name do
|
13
|
+
concern(name, proc.call) unless @concerns.key?(name)
|
14
|
+
name
|
15
|
+
end
|
22
16
|
end
|
23
17
|
end
|
24
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_active_scaffold
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.6.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.6.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: eac_ruby_utils
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0.74'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: eac_rails_gem_support
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.3'
|
55
55
|
description:
|
56
56
|
email:
|
57
57
|
executables: []
|