README.md in paperclip-storage-ftp-1.2.3 vs README.md in paperclip-storage-ftp-1.2.4
- old
+ new
@@ -35,12 +35,11 @@
In your model:
```ruby
class User < ActiveRecord::Base
- has_attached_file :avatar,
-
+ has_attached_file :avatar, {
# Choose the FTP storage backend
:storage => :ftp,
# Set where to store the file on the FTP server(s).
# This supports Paperclip::Interpolations.
@@ -77,15 +76,20 @@
# established, the connection error will be ignored and the files will
# not be uploaded to that server.
# If set to false and the connection to a particular server cannot be established,
# a SystemCallError will be raised (Errno::ETIMEDOUT, Errno::ENETUNREACH, etc.).
:ftp_ignore_failing_connections => true # optional, false by default
+ }
end
```
## Changelog
+### 1.2.4
+
+* Avoid unnecessary connection to server(s) when there are no files to be written or deleted [#26](https://github.com/xing/paperclip-storage-ftp/pull/26)
+
### 1.2.3
* Rescue FTPPermError exception during `file_exists?` [#22](https://github.com/xing/paperclip-storage-ftp/pull/22)
### 1.2.2
@@ -122,9 +126,9 @@
* [Sebastian Röbke](https://github.com/boosty)
* and other friendly [contributors](https://github.com/xing/paperclip-storage-ftp/graphs/contributors)
You can find out more about our work on our [dev blog](http://devblog.xing.com).
-Copyright (c) 2014 [XING AG](http://www.xing.com)
+Copyright (c) 2015 [XING AG](http://www.xing.com)
Released under the MIT license. For full details see [LICENSE](https://github.com/xing/paperclip-storage-ftp/blob/master/LICENSE)
included in this distribution.