app: fix usage of frozen string & remove trailing slash.
This commit is contained in:
parent
90576fb2b4
commit
d3ec76f37a
1 changed files with 4 additions and 1 deletions
|
@ -86,7 +86,10 @@ module Kook
|
||||||
if view_path == project_path then
|
if view_path == project_path then
|
||||||
view_path = '.'
|
view_path = '.'
|
||||||
else
|
else
|
||||||
view_path.gsub!(/^#{project_path}\//,'')
|
view_path = (view_path
|
||||||
|
.gsub(/^#{project_path}\//,'')
|
||||||
|
.gsub(/\/$/,'')
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
@projects[project_name].create_view view_name, view_path
|
@projects[project_name].create_view view_name, view_path
|
||||||
|
|
Loading…
Reference in a new issue