private Method

ActionCachePath.extract_extension(file_path)

There's no documentation for this item.

Source Code

# File action_controller/caching/actions.rb, line 140
def extract_extension(file_path)
  # Don't want just what comes after the last '.' to accommodate multi part extensions
  # such as tar.gz.
  file_path[/^[^.]+\.(.+)$/, 1]
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.