Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

this should never return nil, so no use for "try"

  • Loading branch information...
commit 8e6f86e298a94a23a3c2d40e5593a270ea317367 1 parent b23cd21
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/caching/actions.rb
View
2  actionpack/lib/action_controller/caching/actions.rb
@@ -175,7 +175,7 @@ def initialize(controller, options = {}, infer_extension = true)
private
def normalize!(path)
path << 'index' if path[-1] == ?/
- path << ".#{extension}" if extension and !path.split('?').first.try(:ends_with?, ".#{extension}")
+ path << ".#{extension}" if extension and !path.split('?').first.ends_with?(".#{extension}")
URI.parser.unescape(path)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.