Sha256: dfb5344839742f620bcf6a9976b070e01b083711fc436e134ba5ee08bc3f2a1d
Contents?: true
Size: 750 Bytes
Versions: 97
Compression:
Stored size: 750 Bytes
Contents
module ActiveScaffold::Config class Delete < Base self.crud_type = :destroy def initialize(core_config) @core = core_config # start with the ActionLink defined globally @link = self.class.link.clone end # global level configuration # -------------------------- # the ActionLink for this action cattr_accessor :link @@link = ActiveScaffold::DataStructures::ActionLink.new('delete', :label => :delete, :type => :record, :confirm => 'are_you_sure', :crud_type => :destroy, :method => :delete, :position => false, :security_method => :delete_authorized?) # instance-level configuration # ---------------------------- # the ActionLink for this action attr_accessor :link end end
Version data entries
97 entries across 97 versions & 2 rubygems