attached 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/lib/attached/attachment.rb +2 -2
- metadata +3 -3
data/Gemfile
CHANGED
data/lib/attached/attachment.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'guid'
|
2
2
|
|
3
3
|
require 'attached/storage'
|
4
4
|
|
@@ -47,7 +47,7 @@ module Attached
|
|
47
47
|
#
|
48
48
|
# @object.avatar.assign(...)
|
49
49
|
|
50
|
-
def assign(file, identifier =
|
50
|
+
def assign(file, identifier = Guid.new)
|
51
51
|
@file = file.tempfile
|
52
52
|
|
53
53
|
extension = File.extname(file.original_filename)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 4
|
9
|
+
version: 0.0.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kevin Sylvestre
|
@@ -18,7 +18,7 @@ date: 2010-12-07 00:00:00 -05:00
|
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
name:
|
21
|
+
name: guid
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|