class ActiveScaffold::Config::Nested

Attributes

label[W]

the label for this Nested action. used for the header.

shallow_delete[RW]

instance-level configuration


Public Class Methods

new(core_config) click to toggle source
# File lib/active_scaffold/config/nested.rb, line 5
def initialize(core_config)
  @core = core_config
  self.shallow_delete = self.class.shallow_delete
  @action_group = self.class.action_group.clone if self.class.action_group
end

Public Instance Methods

label() click to toggle source
# File lib/active_scaffold/config/nested.rb, line 39
def label
  @label ? as_(@label) : as_(:add_existing_model, :model => @core.label)
end