Sha256: 457653d05ce931d6b99b70ebde6a9d7af78405d779495bc5a52246e003d98d92

Contents?: true

Size: 935 Bytes

Versions: 12

Compression:

Stored size: 935 Bytes

Contents

module ActiveScaffold::Config
  class Update < ActiveScaffold::Config::Form
    self.crud_type = :update
    def initialize(core_config)
      super
      self.nested_links = self.class.nested_links
    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('edit', :label => :edit, :type => :member, :security_method => :update_authorized?, :ignore_method => :update_ignore?)

    columns_accessor :columns, :copy => :create

    # instance-level configuration
    # ----------------------------

    attr_accessor :nested_links
    cattr_accessor :nested_links
    @@nested_links = false

    attr_writer :hide_nested_column
    def hide_nested_column
      @hide_nested_column.nil? ? true : @hide_nested_column
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
active_scaffold-3.4.43 lib/active_scaffold/config/update.rb
active_scaffold-3.4.42 lib/active_scaffold/config/update.rb
active_scaffold-3.4.41.1 lib/active_scaffold/config/update.rb
active_scaffold-3.4.41 lib/active_scaffold/config/update.rb
active_scaffold-3.4.40 lib/active_scaffold/config/update.rb
active_scaffold-3.4.39 lib/active_scaffold/config/update.rb
active_scaffold-3.4.38 lib/active_scaffold/config/update.rb
active_scaffold-3.4.37 lib/active_scaffold/config/update.rb
active_scaffold-3.4.36 lib/active_scaffold/config/update.rb
active_scaffold-3.4.35 lib/active_scaffold/config/update.rb
active_scaffold-3.4.34 lib/active_scaffold/config/update.rb
active_scaffold-3.4.33 lib/active_scaffold/config/update.rb