class ActiveScaffold::Config::BatchDestroy
Attributes
link[RW]
the ActionLink for this action
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_destroy.rb, line 18 def self.link @@link end
link=(val)
click to toggle source
# File lib/active_scaffold/config/batch_destroy.rb, line 21 def self.link=(val) @@link = val end
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