Report abuse

 30   def new
 31     if params[:integration]
 32   debugger
 33       @integration = params[:integration][:type].constantize.new({:is_being_created => true}.merge(params[:integration]))
 34       @integration_file = @integration.build_integration_file({:is_active => true}.merge(params[:integration_file]))
 35 
 36       @integration.save(false)
 37 
 38       generate_file_preview_and_mapping_drop_down
 39     end
 40   end