eac_active_scaffold 0.1.0 → 0.2.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: 8bcdda5301ba3953ec222bf339d555940fc6ce0c723f9c4f3140a0aaad67a79c
|
4
|
+
data.tar.gz: dbd55025cff639156a1b00718f113a92a3b9e8cc02333ae71fefb1b3ecabf648
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fee705592394b6ced16de0c2cbfa1e087ae95f29e95a318b41eb517cfa5d921409a986f40ec8061053f6bd30ee6f4c0c269f04fa52c976ae2c00f258d1001295
|
7
|
+
data.tar.gz: 91deecb13b2fdcba31173f25c732d9f006033b8986e28869b2b11c9decfdfed1d2835e82d1671526b4923c88c7b7d2088d6f10af96c07a7fa6cdbe8af3a9de30
|
@@ -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,14 +1,14 @@
|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Put here the authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_scaffold
|
@@ -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: []
|
@@ -59,7 +59,7 @@ extensions: []
|
|
59
59
|
extra_rdoc_files: []
|
60
60
|
files:
|
61
61
|
- app/assets/javascripts/eac_active_scaffold.js
|
62
|
-
- app/assets/stylesheets/eac_active_scaffold.
|
62
|
+
- app/assets/stylesheets/eac_active_scaffold.scss
|
63
63
|
- lib/eac_active_scaffold.rb
|
64
64
|
- lib/eac_active_scaffold/engine.rb
|
65
65
|
- lib/eac_active_scaffold/patches.rb
|