From 5ba4e4ac654cc8388619538f576fe234659b84ec Mon Sep 17 00:00:00 2001 From: Jeremy Daer Date: Tue, 29 Sep 2015 14:26:25 -0700 Subject: [PATCH] Shush Mime::JSON deprecation. Switch to backward-compatible Mime[:json] --- lib/jbuilder/jbuilder_template.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jbuilder/jbuilder_template.rb b/lib/jbuilder/jbuilder_template.rb index 944107a..31d46b6 100644 --- a/lib/jbuilder/jbuilder_template.rb +++ b/lib/jbuilder/jbuilder_template.rb @@ -170,7 +170,7 @@ def _render_active_model_partial(object) class JbuilderHandler cattr_accessor :default_format - self.default_format = Mime::JSON + self.default_format = Mime[:json] def self.call(template) # this juggling is required to keep line numbers right in the error