app/models/inline_image.rb
def got_file
    generate_hash(tempfile_image_path)
    FileUtils.chmod(0775, tempfile_image_path)
    self.file_needs_move = true
    self.received_file = true
  end
# Call once a file is available in tempfile_image_path.
Call once a file is available in tempfile_image_path.
Call once a file is available in tempfile_image_path .
def got_file
    generate_hash(tempfile_image_path)
    FileUtils.chmod(0775, tempfile_image_path)
    self.file_needs_move = true
    self.received_file = true
  end
def got_file generate_hash ( tempfile_image_path ) FileUtils . chmod ( 0775 , tempfile_image_path ) self . file_needs_move = true self . received_file = true end
Call once a file is available in tempfile_image_path.
Call once a file is available in tempfile_image_path .