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
link()
click to toggle source
global level configuration
the ActionLink for this action
# File lib/active_scaffold/config/batch_create.rb, line 14 def self.link @@link end
link=(val)
click to toggle source
# File lib/active_scaffold/config/batch_create.rb, line 17 def self.link=(val) @@link = val end
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