suite
This commit is contained in:
parent
369de39542
commit
ec53ec4375
@ -98,7 +98,11 @@ class Admin::ContactsController < ApplicationController
|
|||||||
}
|
}
|
||||||
|
|
||||||
@contact = Contact.new(contact_api_params)
|
@contact = Contact.new(contact_api_params)
|
||||||
@contact.provenance_id = 2
|
if params[:provenance_id]
|
||||||
|
@contact.provenance_id = 3
|
||||||
|
else
|
||||||
|
@contact.provenance_id = 2
|
||||||
|
end
|
||||||
if @contact.save(:validate => false)
|
if @contact.save(:validate => false)
|
||||||
render :inline => "ok"
|
render :inline => "ok"
|
||||||
puts "OK"
|
puts "OK"
|
||||||
|
BIN
public/provenance/3.png
Normal file
BIN
public/provenance/3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Loading…
x
Reference in New Issue
Block a user