paperclip-eitheror 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30eaf33665bded688d140b411866ebd3e8001cd4
4
- data.tar.gz: e9bd11dfcc2c6d3ee834cdda13fc81e524b18cd0
3
+ metadata.gz: 7dce903fbc035a8f72c58eb4b9569b4f6e7033b3
4
+ data.tar.gz: a1bf62b77c707bcf02eda8b4e7df7d8809794e5a
5
5
  SHA512:
6
- metadata.gz: fbcc67e71153a54d4823056d473cdc145152f5351b6f0f4664ada122ed1c9d3067a8ff6c7e5eadedfd769576e286a324d02642d5a71d3158b9676cf78cf1e7f9
7
- data.tar.gz: 0e75e76b3e57bc0c78dd1165cbed4921648106f85899c8d32db2194de9c5bf5ae351d084792339702e2f7ce8703d5daecd7172d82a532396ba7338cadd1ad4c2
6
+ metadata.gz: d918f7adc55418afbbb5d70d03ae180faa6dff0dd3907682a3533ffb4499bacf4e092830d69e2d855f61329ac2fc7fac60cb2f125f8ca1c26fecb806f1ab4982
7
+ data.tar.gz: 28572aa9032192fdc8f0fbefa0b240ff29347c80d97e70f6da1075f63b6ce88701e78da258db975808517bc9ae508031c64e01015961dc808dcf4318c7ec4c19
@@ -1,5 +1,5 @@
1
1
  module Paperclip
2
2
  module Eitheror
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -81,7 +81,7 @@ module Paperclip
81
81
  end
82
82
 
83
83
  def usable_storage
84
- return @or unless @either.options[:enabled]
84
+ return @or unless either_enabled?
85
85
  return @either if !@or.exists? || @either.exists?
86
86
  options[:autosync] && sync ? @either : @or
87
87
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-eitheror
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matheus Abegg