bbcode-rails 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bbcode-rails/tag.rb +5 -4
- data/lib/bbcode-rails/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: 109c94d320f0111ad525b254f3e99cd37fc7bf0a
|
4
|
+
data.tar.gz: ac7b790975f2600fb5aca83a3a9d156e141c5e04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13deaddccdc0de9f4a56b9343be41840e66c1615b2a0077a689c87d3ac4aa9431df3ac8c43e792118ce5dcd7e669326fee72c851fb12055f83fed10084210a90
|
7
|
+
data.tar.gz: 7cfd4b55921031d91b79c292d77a1fd21d0fbf8a78bbf45bd6e4d5e4ba6aab42c2b30b5ad6d2447da7ad0c9fea2770d4d4cf0527b141a12448afecdf3cc11452
|
data/lib/bbcode-rails/tag.rb
CHANGED
@@ -6,6 +6,7 @@ else
|
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
|
+
|
9
10
|
class BBCode::Tag
|
10
11
|
if defined?(Rails)
|
11
12
|
include AbstractController::Rendering
|
@@ -54,13 +55,13 @@ class BBCode::Tag
|
|
54
55
|
result = @content.map(&:to_s).join('')
|
55
56
|
end
|
56
57
|
if has_option(:content) and has_option(:argument)
|
57
|
-
|
58
|
+
self.instance_exec(@argument, result, &get_block)
|
58
59
|
elsif has_option :content
|
59
|
-
|
60
|
+
self.instance_exec(result, &get_block)
|
60
61
|
elsif has_option :argument
|
61
|
-
|
62
|
+
self.instance_exec(@argument, &get_block)
|
62
63
|
else
|
63
|
-
get_block
|
64
|
+
self.instance_exec(&get_block)
|
64
65
|
end
|
65
66
|
end
|
66
67
|
|
data/lib/bbcode-rails/version.rb
CHANGED