class ActiveScaffold::Config::Create

Attributes

edit_after_create[RW]

whether the form stays open after a create or not

persistent[RW]

whether the form stays open after a create or not

refresh_list[RW]

whether we should refresh list after create or not

Public Class Methods

new(*args) click to toggle source
Calls superclass method ActiveScaffold::Config::Form::new
# File lib/active_scaffold/config/create.rb, line 4
def initialize(*args)
  super
  self.persistent = self.class.persistent
  self.edit_after_create = self.class.edit_after_create
  self.refresh_list = self.class.refresh_list
end

Public Instance Methods

label(model = nil) click to toggle source

instance-level configuration


the label= method already exists in the Form base class

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