Sha256: cb933792f0fe85243813897d6ebfff65b5b2080fafb54ce0e41abc7196a3e4ed
Contents?: true
Size: 963 Bytes
Versions: 6
Compression:
Stored size: 963 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?) cattr_accessor :nested_links, instance_accessor: false @@nested_links = false columns_accessor :columns, :copy => :create # instance-level configuration # ---------------------------- attr_accessor :nested_links attr_writer :hide_nested_column def hide_nested_column @hide_nested_column.nil? ? true : @hide_nested_column end end end
Version data entries
6 entries across 6 versions & 1 rubygems