Sha256: 58cd8bbae5b466ce7f5e69a7f3afd3658469019ef03621acea66d37335bff9dd

Contents?: true

Size: 1.15 KB

Versions: 24

Compression:

Stored size: 1.15 KB

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
      @action_group = self.class.action_group.clone if self.class.action_group
      self.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

24 entries across 24 versions & 1 rubygems

Version Path
active_scaffold_vho-3.2.10 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.2.9 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.2.8 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.2.7 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.2.6 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.2.5 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.2.4 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.2.3 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.2.2 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.2.1 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.2.0 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.0.31 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.1.8 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.0.30 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.0.29 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.1.6 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.0.28 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.1.5 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.0.27 lib/active_scaffold/config/delete.rb
active_scaffold_vho-3.1.4 lib/active_scaffold/config/delete.rb