Class: ActiveScaffold::Config::Delete

Inherits:
Base show all
Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/delete.rb

Constant Summary collapse

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 Attribute Summary collapse

Attributes inherited from Base

#user

Instance Method Summary collapse

Methods inherited from Base

#crud_type, #formats, #formats=, inherited

Methods included from ActiveScaffold::Configurable

#configure, #method_missing

Constructor Details

#initialize(core_config) ⇒ Delete

Returns a new instance of Delete.



5
6
7
8
9
10
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/delete.rb', line 5

def initialize(core_config)
  @core = core_config

  # start with the ActionLink defined globally
  @link = self.class.link.clone
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveScaffold::Configurable

Instance Attribute Details

the ActionLink for this action



23
24
25
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/delete.rb', line 23

def link
  @link
end