class ActiveScaffold::Config::BatchCreate

Attributes

default_batch_by_column[RW]

you may use create_batch to create a record for each record of a belong_to association (reverse must be has_many) eg. player belongs to team you may batch create a player records for a list of teams

list_mode_enabled[RW]
process_mode[RW]

see class accessor

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/active_scaffold/config/batch_create.rb, line 4
def initialize(*args)
  super
  @process_mode = self.class.process_mode
  @action_group ||= 'collection.batch'
  @list_mode_enabled = self.class.list_mode_enabled
end

Public Instance Methods

label(model = nil) click to toggle source

the label= method already exists in the Form base class

# File lib/active_scaffold/config/batch_create.rb, line 52
def label(model = nil)
  model ||= @core.label(:count => 2)
  @label ? as_(@label) : as_(:create_model, :model => model)
end