gitcoinco/code_fund_ads

View on GitHub
app/controllers/property_screenshots_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class PropertyScreenshotsController < ApplicationController
  before_action :authenticate_user!

  def update
    property = Property.find(params[:property_id])
    GeneratePropertyScreenshotJob.perform_later(property.id)
    redirect_to property, notice: "Screenshot is being re-captured"
  end
end