lib/tdiary/configuration.rb in tdiary-4.2.0 vs lib/tdiary/configuration.rb in tdiary-4.2.1
- old
+ new
@@ -58,11 +58,13 @@
# backword compatibility, you can use TDiary::ViewHelper#base_url
def base_url
if @options['base_url'] && @options['base_url'].length > 0
@options['base_url']
- else
+ elsif @request
@request.base_url
+ else
+ ''
end
end
def to_native( str, charset = nil )
str = str.dup