* Add ApplicationMetalController to relevant controllers * Add request forgery protection to metal * Remove logger call * Add logger keyword and skip protect_from_forgery in test * Uncomment main_image in test
8 lines
253 B
Ruby
8 lines
253 B
Ruby
class HtmlVariantTrialsController < ApplicationMetalController
|
|
include ActionController::Head
|
|
|
|
def create
|
|
HtmlVariantTrialCreateJob.perform_later(html_variant_id: params[:html_variant_id], article_id: params[:article_id])
|
|
head :ok
|
|
end
|
|
end
|