Module: ActiveScaffold::Actions::BatchCreate
- Defined in:
- lib/active_scaffold/actions/batch_create.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/active_scaffold/actions/batch_create.rb', line 4 def self.included(base) base.send :include, ActiveScaffold::Actions::BatchBase unless base < ActiveScaffold::Actions::BatchBase base.before_action :batch_create_authorized_filter, :only => [:batch_new, :batch_create] base.helper_method :batch_create_values base.helper_method :batch_create_by_column base.helper_method :batch_create_by_records end |
Instance Method Details
#batch_add ⇒ Object
17 18 19 20 |
# File 'lib/active_scaffold/actions/batch_create.rb', line 17 def batch_add do_batch_add respond_to_action(:batch_add) end |
#batch_create ⇒ Object
22 23 24 |
# File 'lib/active_scaffold/actions/batch_create.rb', line 22 def batch_create batch_action end |
#batch_new ⇒ Object
12 13 14 15 |
# File 'lib/active_scaffold/actions/batch_create.rb', line 12 def batch_new do_batch_new respond_to_action(:batch_new) end |