method
extract_extension

extract_extension(file_path)
private
Hide source
# File actionpack/lib/action_controller/caching.rb, line 255 def extract_extension(file_path) # Don't want just what comes after the last '.' to accomodate multi part extensions # such as tar.gz. file_path[/^[^.]+\.(.+)$/, 1] end