active_scaffold_batch_vho 3.1.3 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZTVjZGY3MTI5OWViMThjNmUxM2IwMTE2MTQxMWE1ZjVhM2U1NjEyOQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ODY5M2RmMzczMzg2OTg2ODYxMWVmYjdiNGNiYzMwNGNlNThjOTUzYQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZWM4ODgzOWViYTdkMGY5ODMzYTIyYjAxYzJmNjNiY2RmN2Q0MzNjMjAxYzc4
|
10
|
+
ZjczYTQwZDAwNzY0MzlhODRiNWVkZWVjN2JkZTdlZDNkNzc2ZDA2ZjEzOTU2
|
11
|
+
YjcxZjZkNTBkYTY4YzI1YTNlODNiNDAzOTkxOTJlYzA3ZTlkOWI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
OWNmYjM5MDI4YTRiYWE5YTFjY2Q1OTNiYzU2MjkwNDg4ZTU1M2E3YWU3MjI4
|
14
|
+
Y2NiYTNiYmYxMWZlNGYwYThkYWNlOTU3OWVlYWQ2M2ZiYTQ2Nzg0YTU5Yjlk
|
15
|
+
ZGU5YTk0OTQ3YTcwNGI5ZTA3NjQ1ODEyODEyYzk5MWZkMTI5YTI=
|
@@ -17,7 +17,7 @@
|
|
17
17
|
next %>
|
18
18
|
<% else
|
19
19
|
renders_as = :field if renders_as == :subform -%>
|
20
|
-
<li class="form-element <%= column.css_class unless column.css_class.nil? %>">
|
20
|
+
<li class="form-element <%= column.css_class unless column.css_class.nil? || column.css_class.is_a?(Proc) %>">
|
21
21
|
<%= render :partial => 'batch_create_form_attribute', :locals => { :column => column } -%>
|
22
22
|
</li>
|
23
23
|
<% end -%>
|
@@ -79,6 +79,10 @@ module ActiveScaffold::Actions
|
|
79
79
|
@marked_records_parent
|
80
80
|
end
|
81
81
|
|
82
|
+
def unmark_parent_record(parent_id)
|
83
|
+
marked_records_parent.delete(parent_id) if batch_scope == 'MARKED' && marked_records_parent
|
84
|
+
end
|
85
|
+
|
82
86
|
def before_do_batch_create
|
83
87
|
create_columns = active_scaffold_config.batch_create.columns
|
84
88
|
@batch_create_values = attribute_values_from_params(create_columns, params[:record])
|
@@ -132,7 +136,7 @@ module ActiveScaffold::Actions
|
|
132
136
|
if authorized_for_job?(@record)
|
133
137
|
create_save
|
134
138
|
if successful?
|
135
|
-
|
139
|
+
unmark_parent_record(created_by.id)
|
136
140
|
else
|
137
141
|
error_records << @record
|
138
142
|
end
|
metadata
CHANGED
@@ -1,60 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_batch_vho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
5
|
-
prerelease:
|
4
|
+
version: 3.1.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Volker Hochstein
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-06-27 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: shoulda
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: bundler
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ! '>='
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: 1.0.0
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.0.0
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: rcov
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
45
|
- - ! '>='
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: active_scaffold_vho
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
59
|
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: 3.1.2
|
55
62
|
type: :runtime
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.1.2
|
58
69
|
description: You want to batch create/destroy/update many records at once with activescaffold?
|
59
70
|
email: vhochstein@gmail.com
|
60
71
|
executables: []
|
@@ -104,26 +115,25 @@ files:
|
|
104
115
|
homepage: http://github.com/vhochstein/active_scaffold_batch
|
105
116
|
licenses:
|
106
117
|
- MIT
|
118
|
+
metadata: {}
|
107
119
|
post_install_message:
|
108
120
|
rdoc_options: []
|
109
121
|
require_paths:
|
110
122
|
- lib
|
111
123
|
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
-
none: false
|
113
124
|
requirements:
|
114
125
|
- - ! '>='
|
115
126
|
- !ruby/object:Gem::Version
|
116
127
|
version: '0'
|
117
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
-
none: false
|
119
129
|
requirements:
|
120
130
|
- - ! '>='
|
121
131
|
- !ruby/object:Gem::Version
|
122
132
|
version: '0'
|
123
133
|
requirements: []
|
124
134
|
rubyforge_project:
|
125
|
-
rubygems_version:
|
135
|
+
rubygems_version: 2.2.2
|
126
136
|
signing_key:
|
127
|
-
specification_version:
|
137
|
+
specification_version: 4
|
128
138
|
summary: Batch Processing for ActiveScaffold
|
129
139
|
test_files: []
|