Class: AdminAssistant::Request::MultiNew

Inherits:
AbstractNew show all
Defined in:
lib/admin_assistant/request/new.rb

Instance Method Summary collapse

Methods inherited from AbstractNew

#new_saving

Methods inherited from Base

#action, #after_template_file, #before_template_file, #initialize, #model_class, #model_class_symbol, #origin, #render_multi_form, #render_single_form, #render_template_file, #render_to_string, #render_to_string_if_exists

Constructor Details

This class inherits a constructor from AdminAssistant::Request::Base

Instance Method Details

#callObject


25
26
27
28
# File 'lib/admin_assistant/request/new.rb', line 25

def call
  records = (0..9).map { new_saving }.map(&:record)
  render_multi_form records
end