Sha256: b543c08071606b678f4acf8472f423933f1978cbf85741d22d68518216eb9c22

Contents?: true

Size: 1.05 KB

Versions: 18

Compression:

Stored size: 1.05 KB

Contents

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

    def initialize(core_config)
      super
      # start with the ActionLink defined globally
      @link = self.class.link.clone
      @refresh_list = self.class.refresh_list
    end

    # global level configuration
    # --------------------------

    # the ActionLink for this action
    cattr_accessor :link
    @@link = ActiveScaffold::DataStructures::ActionLink.new('destroy', :label => :delete, :type => :member, :confirm => :are_you_sure_to_delete, :method => :delete, :crud_type => :delete, :position => false, :parameters => {:destroy_action => true}, :security_method => :delete_authorized?, :ignore_method => :delete_ignore?)

    # whether we should refresh list after destroy or not
    cattr_accessor :refresh_list
    @@refresh_list = false

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

    # the ActionLink for this action
    attr_accessor :link

    # whether we should refresh list after destroy or not
    attr_accessor :refresh_list
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
active_scaffold-3.3.3 lib/active_scaffold/config/delete.rb
active_scaffold-3.3.2 lib/active_scaffold/config/delete.rb
active_scaffold-3.3.1 lib/active_scaffold/config/delete.rb
active_scaffold-3.3.0 lib/active_scaffold/config/delete.rb
active_scaffold-3.2.20 lib/active_scaffold/config/delete.rb
active_scaffold-3.3.0.rc3 lib/active_scaffold/config/delete.rb
active_scaffold-3.3.0.rc2 lib/active_scaffold/config/delete.rb
active_scaffold-3.2.19 lib/active_scaffold/config/delete.rb
active_scaffold-3.3.0.rc lib/active_scaffold/config/delete.rb
active_scaffold-3.2.17 lib/active_scaffold/config/delete.rb
active_scaffold-3.2.16 lib/active_scaffold/config/delete.rb
active_scaffold-3.2.15 lib/active_scaffold/config/delete.rb
active_scaffold-3.2.14 lib/active_scaffold/config/delete.rb
active_scaffold-3.2.13 lib/active_scaffold/config/delete.rb
active_scaffold-3.2.12 lib/active_scaffold/config/delete.rb
active_scaffold-3.2.11 lib/active_scaffold/config/delete.rb
active_scaffold-3.2.10 lib/active_scaffold/config/delete.rb
active_scaffold-3.2.9 lib/active_scaffold/config/delete.rb