Skip to content

Commit 7e58634

Browse files
committed
Fix typo in prod env check
* The ActiveSupport::StringInquirer is just a fancy string comparison, so the strings have to match 😆. The correct environment name is "production". h/t @xdmx
1 parent a88b7e7 commit 7e58634

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jsonapi/exceptions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def initialize(exception)
1010
end
1111

1212
def errors
13-
unless Rails.env.prod?
13+
unless Rails.env.production?
1414
meta = Hash.new
1515
meta[:exception] = exception.message
1616
meta[:backtrace] = exception.backtrace

0 commit comments

Comments
 (0)