class ActiveScaffold::Config::BatchDestroy

Attributes

process_mode[RW]

see class accessor

Public Class Methods

new(core_config) click to toggle source
# File lib/active_scaffold/config/batch_destroy.rb, line 5
def initialize(core_config)
  @core = core_config

  # start with the ActionLink defined globally
  @link = self.class.link
  @action_group = self.class.action_group.clone if self.class.action_group
  @action_group ||= 'collection.batch.destroy'
  @process_mode = self.class.process_mode
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_destroy.rb, line 48
def label(model = nil)
  model ||= @core.label(:count => 2)
  @label ? as_(@label) : as_(:deleted_model, :model => model)
end