Sha256: d6092c7cad1c7506d9eb6c8d471804daa02deac6b4c25a7c9931c1d7fde12659
Contents?: true
Size: 1.08 KB
Versions: 34
Compression:
Stored size: 1.08 KB
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 self.refresh_list = self.class.refresh_list 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?) # whether we should refresh list after update or not cattr_accessor :refresh_list @@refresh_list = false # 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 # whether we should refresh list after update or not attr_accessor :refresh_list end end
Version data entries
34 entries across 34 versions & 2 rubygems