pothoven-attachment_fu 3.2.13 → 3.2.14

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ * Sep 23, 2014 *
2
+ * Pull in changes from corlissc to Refactor DbFileBackend for Rails 4 AREL conformity *
3
+
1
4
  * May 13, 2014 *
2
5
  * Pull in changes from bacrossland to fix thumbnails for S3 storage
3
6
 
data/README.rdoc CHANGED
@@ -1,9 +1,11 @@
1
1
  = attachment-fu
2
2
 
3
+ {<img src="https://badge.fury.io/rb/pothoven-attachment_fu.svg" alt="Gem Version" />}[http://badge.fury.io/rb/pothoven-attachment_fu]
4
+
3
5
  attachment_fu is a plugin by Rick Olson (aka technoweenie
4
6
  http://techno-weenie.net) and is the successor to acts_as_attachment. To get a
5
7
  basic run-through of its capabilities, check out {Mike Clark's
6
- tutorial}[http://clarkware.com/cgi/blosxom/2007/02/24#FileUploadFu].
8
+ tutorial}[https://github.com/pothoven/attachment_fu/blob/master/TUTORIAL.rdoc].
7
9
 
8
10
  = attachment_fu functionality
9
11
 
@@ -29,11 +29,12 @@ module Technoweenie # :nodoc:
29
29
  if save_attachment?
30
30
  (db_file || build_db_file).data = temp_data
31
31
  db_file.save!
32
- self.class.update_all ['db_file_id = ?', self.db_file_id = db_file.id], ['id = ?', id]
32
+ self.db_file_id = db_file.id
33
+ self.class.where(:id => id).update_all(:db_file_id => db_file.id)
33
34
  end
34
35
  true
35
36
  end
36
37
  end
37
38
  end
38
39
  end
39
- end
40
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pothoven-attachment_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.13
4
+ version: 3.2.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-05-13 00:00:00.000000000 Z
13
+ date: 2014-09-23 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: This is a fork of Rick Olson's attachment_fu adding Ruby 1.9 and Rails
16
16
  3.2 and Rails 4 support as well as some other enhancements.