Method: ActionController::Response#charset
- Defined in:
- lib/action_controller/response.rb
#charset ⇒ Object
93 94 95 96 |
# File 'lib/action_controller/response.rb', line 93 def charset charset = String(headers["Content-Type"] || headers["type"]).split(";")[1] charset.blank? ? nil : charset.strip.split("=")[1] end |