has_media 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/has_media.gemspec +1 -1
- data/lib/generators/templates/has_media.rb +2 -2
- data/lib/has_media/uploaders/medium_uploader.rb +1 -1
- data/spec/has_media_spec.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -109,7 +109,7 @@ file : app/models/my_media.rb
|
|
109
109
|
after_save :enqueue_encoding
|
110
110
|
|
111
111
|
def enqueue_encoding
|
112
|
-
Resque.enqueue(EncodeMyMedia,
|
112
|
+
Resque.enqueue(EncodeMyMedia, self.original_file_path)
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/has_media.gemspec
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
# Set the directory path to use to store media
|
2
|
-
HasMedia.directory_path = "media"
|
1
|
+
# Set the absolute directory path to use to store media
|
2
|
+
HasMedia.directory_path = Rails.root + "media"
|
3
3
|
|
4
4
|
# Set the base uri to access media
|
5
5
|
HasMedia.directory_uri = "/media"
|
data/spec/has_media_spec.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_media
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 4
|
10
|
+
version: 0.2.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- klacointe
|