private Method

ActionCacheFilter.set_content_type!(controller, extension)

There's no documentation for this item.

Source Code

# File action_controller/caching/actions.rb, line 101
def set_content_type!(controller, extension)
  controller.response.content_type = Mime::Type.lookup_by_extension(extension).to_s if extension
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.