Skip to content

Commit

Permalink
Use a symbolic default format for Rails 6 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeclaghorn committed May 7, 2019
1 parent 7ff5e25 commit 3895a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jbuilder/jbuilder_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def _render_active_model_partial(object)

class JbuilderHandler
cattr_accessor :default_format
self.default_format = Mime[:json]
self.default_format = :json

def self.call(template, source = nil)
source ||= template.source
Expand Down

0 comments on commit 3895a72

Please sign in to comment.