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