Sha256: df761a0af2f8f8d0092fe5e0cd336d5bf2445fba93b59f23466ddf103ca7369e
Contents?: true
Size: 858 Bytes
Versions: 99
Compression:
Stored size: 858 Bytes
Contents
module ActiveScaffold::Config class Update < 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 => :record, :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 end end
Version data entries
99 entries across 99 versions & 3 rubygems