paperclip_database_storage 3.0.0 → 3.0.1

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.
data/README.md CHANGED
@@ -56,4 +56,4 @@ TO-DO
56
56
  * Add support for more than one database attachment per model
57
57
  * Enable defining a separate table for each different attachment
58
58
 
59
- Copyright (c) 2012 [Pedro Rodrigues], released under the MIT license
59
+ Copyright (c) 2012 [Pedro Rodrigues](mailto:pedro@bbde.org), released under the MIT license
@@ -65,7 +65,7 @@ module Paperclip
65
65
  a.attached_type = self.instance.class.name
66
66
  a.attached_id = self.instance.id
67
67
  a.style = style
68
- a.content_type = self.instance_variable_get("@_#{self.name.to_s}_content_type")
68
+ a.content_type = file.content_type
69
69
  a.attachment_name = attachment_definitions.keys.first
70
70
  a.file_size = file.size
71
71
  a.file_data = file.read
@@ -1,3 +1,3 @@
1
1
  module PaperclipDatabaseStorage
2
- VERSION = "3.0.0" unless defined? PaperclipDatabaseStorage::VERSION
2
+ VERSION = "3.0.1" unless defined? PaperclipDatabaseStorage::VERSION
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip_database_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: