Sha256: 07a446b0c1326368b16182e318883900c98bce1f40d5bd504af0b140229435f8
Contents?: true
Size: 1015 Bytes
Versions: 1
Compression:
Stored size: 1015 Bytes
Contents
module ActiveScaffold::Config class Update < ActiveScaffold::Config::Form self.crud_type = :update def initialize(*args) 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?) # instance-level configuration # ---------------------------- # the label= method already exists in the Form base class def label @label ? as_(@label) : as_(:update_model, :model => @core.label(:count => 1)) end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_scaffold-3.0.5 | lib/active_scaffold/config/update.rb |