Sha256: 34d10cc2ff48a87f2301c72250710527c83b6c844db2842d880fc5ba4b447124
Contents?: true
Size: 941 Bytes
Versions: 35
Compression:
Stored size: 941 Bytes
Contents
module ActiveScaffold::Config class Create < ActiveScaffold::Config::Form self.crud_type = :create def initialize(core_config) super @label = :create_model self.action_after_create = self.class.action_after_create end # global level configuration # -------------------------- # the ActionLink for this action def self.link @@link end def self.link=(val) @@link = val end @@link = ActiveScaffold::DataStructures::ActionLink.new('new', :label => :create_new, :type => :collection, :security_method => :create_authorized?, :ignore_method => :create_ignore?) # whether update form is opened after a create or not cattr_accessor :action_after_create @@action_after_create = nil # instance-level configuration # ---------------------------- # whether the form stays open after a create or not attr_accessor :action_after_create end end
Version data entries
35 entries across 35 versions & 1 rubygems