active_scaffold_batch_vho 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{active_scaffold_batch_vho}
|
8
|
-
s.version = "3.0.
|
8
|
+
s.version = "3.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Volker Hochstein"]
|
12
|
-
s.date = %q{2011-03-
|
12
|
+
s.date = %q{2011-03-07}
|
13
13
|
s.description = %q{You want to destroy/update many records at once with activescaffold?}
|
14
14
|
s.email = %q{activescaffold@googlegroups.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -117,14 +117,14 @@ module ActiveScaffold::Actions
|
|
117
117
|
end
|
118
118
|
end
|
119
119
|
|
120
|
-
def new_batch_create_record
|
120
|
+
def new_batch_create_record(created_by)
|
121
121
|
new_model
|
122
122
|
end
|
123
123
|
|
124
|
-
def create_record(
|
124
|
+
def create_record(created_by)
|
125
125
|
@successful = nil
|
126
|
-
@record = new_batch_create_record
|
127
|
-
@record.send("#{batch_create_by_column.to_s}=",
|
126
|
+
@record = new_batch_create_record(created_by)
|
127
|
+
@record.send("#{batch_create_by_column.to_s}=", created_by)
|
128
128
|
batch_create_values.each do |attribute, value|
|
129
129
|
set_record_attribute(value[:column], attribute, value[:value])
|
130
130
|
end
|
@@ -132,7 +132,7 @@ module ActiveScaffold::Actions
|
|
132
132
|
if authorized_for_job?(@record)
|
133
133
|
create_save
|
134
134
|
if successful?
|
135
|
-
marked_records_parent.delete(
|
135
|
+
marked_records_parent.delete(created_by.id) if batch_scope == 'MARKED' && marked_records_parent
|
136
136
|
else
|
137
137
|
error_records << @record
|
138
138
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_batch_vho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 5
|
10
|
+
version: 3.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Volker Hochstein
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-07 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|