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 15 def self.link @@link end
link=(val)
click to toggle source
# File lib/active_scaffold/config/create.rb, line 18 def self.link=(val) @@link = val end
new(core_config)
click to toggle source
Calls superclass method
ActiveScaffold::Config::Form::new
# File lib/active_scaffold/config/create.rb, line 4 def initialize(core_config) super @label = :create_model self.persistent = self.class.persistent self.action_after_create = self.class.action_after_create self.refresh_list = self.class.refresh_list end