Skip to content

Commit 5ba4e4a

Browse files
committed
Shush Mime::JSON deprecation. Switch to backward-compatible Mime[:json]
1 parent 3536726 commit 5ba4e4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jbuilder/jbuilder_template.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def _render_active_model_partial(object)
170170

171171
class JbuilderHandler
172172
cattr_accessor :default_format
173-
self.default_format = Mime::JSON
173+
self.default_format = Mime[:json]
174174

175175
def self.call(template)
176176
# this juggling is required to keep line numbers right in the error

0 commit comments

Comments
 (0)