songdrop 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/songdrop/objects/image_helper.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f3fdc60db02c8bbfa36023b732257ff4ae00065
|
4
|
+
data.tar.gz: 941b8112fe6a9344ddfe55f9d12c21b241662437
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 235593bdfb705801839aeae291eb10099d587001a44a03355c03c29f3d3c0fcd12ed93b9d3188e85f73dbbabea2eccfa40c81dc78fe2fdb674448ce50f21088a
|
7
|
+
data.tar.gz: d6386baee0d822ec72f8d58cf1c6aad21871bb64f26e307a00c2b1c9409b855451f326034ef1f9e08d319fbd3e0c275f4c5128423be5d7420f56c07ab47f6d8d
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Songdrop
|
2
2
|
module ImageHelper
|
3
3
|
|
4
|
-
def
|
4
|
+
def image(options={})
|
5
5
|
options[:action] ||= 'crop'
|
6
6
|
options[:size] ||= '50x50'
|
7
|
-
self.
|
7
|
+
self.image_url.gsub('ACTION', options[:action]).gsub('WIDTHxHEIGHT', options[:size])
|
8
8
|
end
|
9
9
|
|
10
10
|
end
|