Skip to content

Commit dc9b14e

Browse files
committed
Convert to hash before json
This is causing an error with oj converting directly from a struct to json
1 parent 83493cb commit dc9b14e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/grape_swagger_rails/application/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html data-swagger-options="<%= GrapeSwaggerRails.options.to_json %>">
2+
<html data-swagger-options="<%= GrapeSwaggerRails.options.to_h.to_json %>">
33
<head>
44
<title><%= GrapeSwaggerRails.options.app_name || 'Swagger UI' %></title>
55
<link href='//fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'/>

0 commit comments

Comments
 (0)