Sha256: db93bc898b68f03fa9e837c3f7a7ef95582d6eaefe0b858c1803b995821b7832

Contents?: true

Size: 737 Bytes

Versions: 5

Compression:

Stored size: 737 Bytes

Contents

module ActiveScaffold::Config
  class Delete < Base
    self.crud_type = :delete

    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 => :member, :confirm => :are_you_sure_to_delete, :crud_type => :delete, :position => false, :security_method => :delete_authorized?)

    # instance-level configuration
    # ----------------------------

    # the ActionLink for this action
    attr_accessor :link
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_scaffold-3.0.5 lib/active_scaffold/config/delete.rb
active_scaffold-3.0.4 lib/active_scaffold/config/delete.rb
active_scaffold-3.0.2 lib/active_scaffold/config/delete.rb
active_scaffold-3.0.1 lib/active_scaffold/config/delete.rb
active_scaffold-3.0.0 lib/active_scaffold/config/delete.rb