hashtags 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hashtags/mongoid_extension.rb +6 -2
- data/lib/hashtags/version.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: 9d8e2d5d74f8166dbeb87095bdc2bef3cea0031c
|
4
|
+
data.tar.gz: 8cdfbed18bdbe0f351562560ea54fda4fdb11a5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ff3581da657b002f6157e560d8fe4baba02c5c2dadeac6154fd197badf19e3ef0c2f2cc8a0c82a53ad385b82adf346ef953b2f911cf00bfb262651f2315490c
|
7
|
+
data.tar.gz: 7c2b96e6412a9fb7388ee3321df59e8adf2dc222fdb09d72922ddbce48462d4c4d011cd65145eafd979bcfd6cb346dc6cffe5af4c387a7f8e035029fbb3a1a0e
|
@@ -22,10 +22,14 @@ Mongoid::Fields.option :hashtags do |cls, field, value|
|
|
22
22
|
field.define_singleton_method :demongoize do |*args|
|
23
23
|
res = super(*args)
|
24
24
|
res.define_singleton_method :to_markup do
|
25
|
-
|
25
|
+
field.type.new(
|
26
|
+
Hashtags::Builder.to_markup(res.to_s, options).html_safe
|
27
|
+
)
|
26
28
|
end
|
27
29
|
res.define_singleton_method :to_hashtag do
|
28
|
-
|
30
|
+
field.type.new(
|
31
|
+
Hashtags::Builder.to_hashtag(res.to_s, options).html_safe
|
32
|
+
)
|
29
33
|
end
|
30
34
|
res
|
31
35
|
end
|
data/lib/hashtags/version.rb
CHANGED