app: fix usage of frozen string & remove trailing slash.

This commit is contained in:
Glenn Y. Rolland 2014-01-03 00:56:50 +01:00
parent 90576fb2b4
commit d3ec76f37a

View file

@ -86,7 +86,10 @@ module Kook
if view_path == project_path then
view_path = '.'
else
view_path.gsub!(/^#{project_path}\//,'')
view_path = (view_path
.gsub(/^#{project_path}\//,'')
.gsub(/\/$/,'')
)
end
@projects[project_name].create_view view_name, view_path