rails_nav 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rails_nav.rb +9 -2
- data/rails_nav.gemspec +1 -1
- metadata +1 -1
data/lib/rails_nav.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
##
|
7
7
|
#
|
8
8
|
def Nav.version()
|
9
|
-
'1.3.
|
9
|
+
'1.3.1'
|
10
10
|
end
|
11
11
|
|
12
12
|
def Nav.dependencies
|
@@ -162,7 +162,8 @@
|
|
162
162
|
end
|
163
163
|
|
164
164
|
def render
|
165
|
-
@erb.result(@binding)
|
165
|
+
result = @erb.result(@binding)
|
166
|
+
result.respond_to?(:html_safe) ? result.html_safe : result
|
166
167
|
end
|
167
168
|
end
|
168
169
|
|
@@ -191,6 +192,12 @@
|
|
191
192
|
end
|
192
193
|
|
193
194
|
alias_method(:to_s, :to_html)
|
195
|
+
alias_method(:to_str, :to_html)
|
196
|
+
alias_method(:html_safe, :to_html)
|
197
|
+
|
198
|
+
def html_safe?
|
199
|
+
true
|
200
|
+
end
|
194
201
|
|
195
202
|
##
|
196
203
|
#
|
data/rails_nav.gemspec
CHANGED