Flowdock
method

set_content_type!

Importance_0
v2.3.2 - Show latest stable - 0 notes - Class: ActionController::Caching::Actions::ActionCacheFilter
set_content_type!(controller, extension) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/caching/actions.rb, line 107
          def set_content_type!(controller, extension)
            controller.response.content_type = Mime::Type.lookup_by_extension(extension).to_s if extension
          end
Register or log in to add new notes.