Class: ActiveScaffold::Config::Delete
- Defined in:
- lib/active_scaffold/config/delete.rb
Constant Summary collapse
- @@link =
ActiveScaffold::DataStructures::ActionLink.new( 'destroy', :label => :delete, :type => :member, :method => :delete, :crud_type => :delete, :confirm => :are_you_sure_to_delete, :position => false, :parameters => {:destroy_action => true}, :security_method => :delete_authorized?, :ignore_method => :delete_ignore? )
- @@refresh_list =
false
Constants inherited from Base
Instance Attribute Summary collapse
-
#link ⇒ Object
the ActionLink for this action.
-
#refresh_list ⇒ Object
whether we should refresh list after destroy or not.
Attributes inherited from Base
#action_group, #core, #formats, #user_settings_key
Instance Method Summary collapse
-
#initialize(core_config) ⇒ Delete
constructor
A new instance of Delete.
Methods inherited from Base
#crud_type, inherited, #label, #model_id, #new_user_settings, #setup_user_setting_key, #user
Methods included from ActiveScaffold::Configurable
#configure, #method_missing, #respond_to_missing?
Constructor Details
#initialize(core_config) ⇒ Delete
Returns a new instance of Delete.
5 6 7 8 |
# File 'lib/active_scaffold/config/delete.rb', line 5 def initialize(core_config) super @refresh_list = self.class.refresh_list 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
36 37 38 |
# File 'lib/active_scaffold/config/delete.rb', line 36 def link @link end |
#refresh_list ⇒ Object
whether we should refresh list after destroy or not
39 40 41 |
# File 'lib/active_scaffold/config/delete.rb', line 39 def refresh_list @refresh_list end |