Skip to content

Commit

Permalink
Render templates without '.' in the name
Browse files Browse the repository at this point in the history
  • Loading branch information
mishina2228 committed Jun 8, 2022
1 parent cdcee07 commit 0222015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web_console/testing/fake_middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def view

# extract target path from REQUEST_PATH
def req_path(env)
env["REQUEST_PATH"].match(@req_path_regex)[1]
File.basename(env["REQUEST_PATH"].match(@req_path_regex)[1], ".*")
end

def render(template)
Expand Down

0 comments on commit 0222015

Please sign in to comment.