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

Version Path
active_scaffold-3.7.11 lib/active_scaffold/config/create.rb
active_scaffold-3.7.10 lib/active_scaffold/config/create.rb
active_scaffold-3.7.8 lib/active_scaffold/config/create.rb
active_scaffold-3.7.7 lib/active_scaffold/config/create.rb
active_scaffold-3.7.6 lib/active_scaffold/config/create.rb
active_scaffold-3.7.5 lib/active_scaffold/config/create.rb
active_scaffold-3.7.2 lib/active_scaffold/config/create.rb
active_scaffold-3.7.1 lib/active_scaffold/config/create.rb
active_scaffold-3.7.0 lib/active_scaffold/config/create.rb
active_scaffold-3.6.20 lib/active_scaffold/config/create.rb
active_scaffold-3.6.19 lib/active_scaffold/config/create.rb
active_scaffold-3.6.17 lib/active_scaffold/config/create.rb
active_scaffold-3.6.15 lib/active_scaffold/config/create.rb
active_scaffold-3.6.14 lib/active_scaffold/config/create.rb
active_scaffold-3.6.13 lib/active_scaffold/config/create.rb
active_scaffold-3.6.12 lib/active_scaffold/config/create.rb
active_scaffold-3.6.11.1 lib/active_scaffold/config/create.rb
active_scaffold-3.6.11 lib/active_scaffold/config/create.rb
active_scaffold-3.6.10 lib/active_scaffold/config/create.rb
active_scaffold-3.6.9 lib/active_scaffold/config/create.rb