Skip to content

Instantly share code, notes, and snippets.

@vitaly
Last active December 23, 2015 03:29
Show Gist options
  • Select an option

  • Save vitaly/6574261 to your computer and use it in GitHub Desktop.

Select an option

Save vitaly/6574261 to your computer and use it in GitHub Desktop.
def self.postprocess(id)
Measurement.find(id).postprocess!
end
def postprocess!
process_start!
ImagesPostProcess.inspector_post_process("/demo/measurements/#{id}")
process_end!
end
def enqueue!
queued!
Measurement.delay.postprocess(id)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment