wip-fix copying images
This commit is contained in:
parent
ff484bf106
commit
1944d689cd
2 changed files with 7 additions and 0 deletions
|
@ -140,6 +140,13 @@ class CampaignsController < ApplicationController
|
|||
|
||||
campaign = Campaign.create(p2p_params)
|
||||
|
||||
# campaign.remote_main_image_url = parent_campaign.main_image_url unless !parent_campaign.main_image rescue AWS::S3::Errors::NoSuchKey
|
||||
# campaign.remote_background_image_url = parent_campaign.background_image_url unless !parent_campaign.background_image rescue AWS::S3::Errors::NoSuchKey
|
||||
# campaign.remote_banner_image_url = parent_campaign.background_image_url unless !parent_campaign.background_image rescue AWS::S3::Errors::NoSuchKey
|
||||
|
||||
campaign.published = true
|
||||
campaign.save
|
||||
|
||||
return campaign unless campaign.errors.empty?
|
||||
|
||||
gift_option_params = []
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 5.1 KiB |
Loading…
Reference in a new issue