Sha256: 35bff5a509c32c398b2622bff4177327795491644ae773d7f15ed1d1fcbcf09a
Contents?: true
Size: 967 Bytes
Versions: 38
Compression:
Stored size: 967 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, instance_accessor: false @@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
38 entries across 38 versions & 1 rubygems