1 2 3 4 5 6 7 8 9 10 11 12
module Guff module APIContentType CONTENT_TYPES = { "development": "text/html; charset=utf-8", "production": "application/json; charset=utf8", } private def get_content_type CONTENT_TYPES[@models.config["environment"]] end end end