active_scaffold_batch 3.2.1 → 3.2.2

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.
data/README CHANGED
@@ -1,4 +1,9 @@
1
- ActiveScaffold batch is a gem which adds batch_update, batch_create and batch_destroy actions
2
- to ActiveScaffold, which means you can perform operations on more than just one record.
1
+ ActiveScaffold batch is a gem which adds batch_update, batch_create and batch_destroy actions to ActiveScaffold, which means you can perform operations on more than just one record.
3
2
 
4
3
  gem 'active_scaffold_batch'
4
+
5
+ In the config block of an activescaffold you can add any of the following lines:
6
+
7
+ config.actions.add :batch_create
8
+ config.actions.add :batch_update
9
+ config.actions.add :batch_destroy
@@ -4,7 +4,7 @@
4
4
  <label for="<%= active_scaffold_input_options(column, scope)[:id] %>"><%= column.label %></label>
5
5
  </dt>
6
6
  <dd>
7
- <% if batch_create_by_column.to_sym == column %>
7
+ <% if column == batch_create_by_column.to_sym %>
8
8
  <%= active_scaffold_batch_create_by_column column, scope %>
9
9
  <% else %>
10
10
  <%= active_scaffold_input_for column, scope %>
@@ -2,7 +2,7 @@ module ActiveScaffoldBatch
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_batch
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
- - 1
10
- version: 3.2.1
9
+ - 2
10
+ version: 3.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sergio Cambra
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2013-02-04 00:00:00 Z
19
+ date: 2013-02-19 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  type: :runtime
@@ -25,7 +25,7 @@ dependencies:
25
25
  requirements:
26
26
  - - ">="
27
27
  - !ruby/object:Gem::Version
28
- hash: -429077350
28
+ hash: -225653461
29
29
  segments:
30
30
  - 3
31
31
  - 3
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  requirements: []
118
118
 
119
119
  rubyforge_project:
120
- rubygems_version: 1.8.24
120
+ rubygems_version: 1.8.23
121
121
  signing_key:
122
122
  specification_version: 3
123
123
  summary: Batch Processing for ActiveScaffold