bbcode-rails 0.8.0 → 0.8.1
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.rb +3 -3
- 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: 61e780627ba8f115e444b25e619ef2a6171f17c8
|
4
|
+
data.tar.gz: bf9f249930246a6833f0dad50df793c89a0a4868
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a012a1a33a55487d615ce18a1c638a493f7097d3be34827ede12f255b0b2113403d85cf27caa8eee108e6ebde8f090d4d030704e469c3cecd034579f8182113
|
7
|
+
data.tar.gz: 09c52a20b460d55e1c76247b5b71aa2a01243d0433b2ebc87f111e7cb0a4fc7ba83b56f442bb8e2d4c2a07bfef967f85a83fbdefc2d34871e5fbf30c6cdef86e
|
data/lib/bbcode-rails.rb
CHANGED
@@ -12,7 +12,7 @@ module BBCode
|
|
12
12
|
def self.get_tag_by_name name
|
13
13
|
if defined?(Rails) && Rails.env.development?
|
14
14
|
begin
|
15
|
-
"#{
|
15
|
+
"#{name}_tag".camelize.constantize
|
16
16
|
rescue NameError
|
17
17
|
end
|
18
18
|
end
|
@@ -167,8 +167,8 @@ module BBCode
|
|
167
167
|
end
|
168
168
|
|
169
169
|
class String
|
170
|
-
def bbcode_to_html
|
171
|
-
BBCode.parse(self)
|
170
|
+
def bbcode_to_html raise_error = false
|
171
|
+
BBCode.parse(self, raise_error)
|
172
172
|
end
|
173
173
|
end
|
174
174
|
|
data/lib/bbcode-rails/version.rb
CHANGED