Skip to content

Commit 39211d2

Browse files
committed
Use end_with? instead of ends_with?
1 parent 7127c19 commit 39211d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/action_controller/caching/actions.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def initialize(controller, options = {}, infer_extension = true)
230230
def normalize!(path)
231231
ext = URI::DEFAULT_PARSER.escape(extension.to_s) if extension
232232
path << "index" if path[-1] == ?/
233-
path << ".#{ext}" if extension && !path.split("?", 2).first.ends_with?(".#{ext}")
233+
path << ".#{ext}" if extension && !path.split("?", 2).first.end_with?(".#{ext}")
234234
URI::DEFAULT_PARSER.unescape(path)
235235
end
236236
end

0 commit comments

Comments
 (0)