validates_presence_of :job, if: Proc.new { |data| data.executed_at? }
I have been tinkering with fixing this issue and it continually fails. If I switch to the recommended proc it chokes on:
What is the best way to process this and pass the cops?
In case others land here, the final syntax was:
validates_presence_of :job, if: proc { executed_at? }