Module: ActiveScaffold::Actions::BatchUpdate
- Defined in:
- lib/active_scaffold/actions/batch_update.rb
Constant Summary collapse
- GenericOperators =
[ 'NO_UPDATE', 'REPLACE' ]
- NumericOperators =
[ 'PLUS', 'MINUS', 'TIMES', 'DIVISION' ]
- NumericOptions =
[ 'ABSOLUTE', 'PERCENT' ]
- DateOperators =
[ 'PLUS', 'MINUS' ]
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
24 25 26 27 28 |
# File 'lib/active_scaffold/actions/batch_update.rb', line 24 def self.included(base) base.send :include, ActiveScaffold::Actions::BatchBase unless base < ActiveScaffold::Actions::BatchBase base.before_action :batch_update_authorized_filter, :only => [:batch_edit, :batch_update] base.helper_method :batch_update_values end |
Instance Method Details
#batch_edit ⇒ Object
30 31 32 33 |
# File 'lib/active_scaffold/actions/batch_update.rb', line 30 def batch_edit do_batch_edit respond_to_action(:batch_edit) end |
#batch_update ⇒ Object
35 36 37 |
# File 'lib/active_scaffold/actions/batch_update.rb', line 35 def batch_update batch_action end |