bitmarkable 0.0.2 → 0.0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bitmarkable/bitmark.rb +2 -2
- data/lib/bitmarkable.rb +1 -1
- 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: 95826a80024683841b5dff52af8e8eddb8ca75f5
|
4
|
+
data.tar.gz: 0e27b5bfdb83fcc52072e139d1027be8d41ace4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d77ebedcc64ff72756f1803f139a6184968a5d86e0f4914958a502979193db9cd6fe73888653a96b5e23d234435ca7f597f6acbb32c7a5c58e2d3dfa9241487b
|
7
|
+
data.tar.gz: 081b5ef097be4ee54449255df636bb4daac8c2d9583898876dfd176355c773209922f142caef530da26a49d2d1794ecd996954d7f6847498f24c9a04fe5dc252
|
data/lib/bitmarkable/bitmark.rb
CHANGED
@@ -9,7 +9,7 @@ module Bitmarkable
|
|
9
9
|
cattr_accessor :url_field
|
10
10
|
after_save :generate_bitmark
|
11
11
|
|
12
|
-
|
12
|
+
bitmarks self.url_field || 'url'
|
13
13
|
|
14
14
|
def generate_bitmark
|
15
15
|
if self.class.respond_to? :delay
|
@@ -21,7 +21,7 @@ module Bitmarkable
|
|
21
21
|
end
|
22
22
|
|
23
23
|
module ClassMethods
|
24
|
-
def
|
24
|
+
def bitmarks(url_field = nil)
|
25
25
|
self.url_field = url_field
|
26
26
|
end
|
27
27
|
|
data/lib/bitmarkable.rb
CHANGED