Sha256: 5c23c91ed343141f40711b9632cdf7b52b775209545f60c38d36f35cbb40a55c
Contents?: true
Size: 940 Bytes
Versions: 29
Compression:
Stored size: 940 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
29 entries across 29 versions & 1 rubygems