model_attachment 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -221,7 +221,7 @@ module ModelAttachment
221
221
  def save_attributes
222
222
  return if file_name.nil? || file_name.class.to_s == "String"
223
223
  # this used to be @temp_file = self.file_name but some change must have happened between 3.0.1 and 3.0.5
224
- @temp_file = (self.file_name.class == "ActionDispatch::Http::UploadFile" ? self.file_name.tempfile : self.file_name)
224
+ @temp_file = (self.file_name.class == "ActionDispatch::Http::UploadedFile" ? self.file_name.tempfile : self.file_name)
225
225
 
226
226
  # get original filename info and clean up for storage
227
227
  filename = File.basename(@temp_file)
@@ -1,3 +1,3 @@
1
1
  module ModelAttachment
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: model_attachment
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.20
5
+ version: 0.0.21
6
6
  platform: ruby
7
7
  authors:
8
8
  - Steve Walker
@@ -58,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- hash: -2213741255093125105
61
+ hash: -3972700263241288820
62
62
  segments:
63
63
  - 0
64
64
  version: "0"