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 =
|
|
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
|