episode-134/store/vendor/plugins/paperclip/lib/paperclip/attachment.rb
# Saves the file, if there are no errors. If there are, it flushes them to
# the instance's errors and returns false, cancelling the save.
Saves the file, if there are no errors. If there are, it flushes them to
the instance's errors and returns false, cancelling the save.
Saves the file if there are no errors . If there are it flushes them to the instance ' s errors and returns false cancelling the save .
def save
      if valid?
        logger.info("[paperclip] Saving files for #{name}")
        flush_deletes
        flush_writes
        @dirty = false
        true
      else
        logger.info("[paperclip] Errors on #{name}. Not saving.")
        flush_errors
        false
      end
    end
def save if valid? logger . info ( "[paperclip] Saving files for #{name}" ) flush_deletes flush_writes @dirty = false true else logger . info ( "[paperclip] Errors on #{name}. Not saving." ) flush_errors false end end
Saves the file, if there are no errors.
Saves the file if there are no errors .