Class: ActiveScaffold::Config::Delete
- Defined in:
- lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/delete.rb
Constant Summary collapse
- @@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 Attribute Summary collapse
-
#link ⇒ Object
the ActionLink for this action.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(core_config) ⇒ Delete
constructor
A new instance of Delete.
Methods inherited from Base
#crud_type, #formats, #formats=, inherited
Methods included from ActiveScaffold::Configurable
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
#link ⇒ Object
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 |