pothoven-attachment_fu 3.2.13 → 3.2.14
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/CHANGELOG +3 -0
- data/README.rdoc +3 -1
- data/lib/technoweenie/attachment_fu/backends/db_file_backend.rb +3 -2
- metadata +2 -2
data/CHANGELOG
CHANGED
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}[
|
|
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.
|
|
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.
|
|
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-
|
|
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.
|