Skip to content

Commit

Permalink
use Ostruct#marshal_dump instead of #to_h to support Ruby 1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Suan-Aik Yeo committed Oct 6, 2015
1 parent 0b70202 commit d5ffbc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/grape_swagger_rails/application/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html data-swagger-options="<%= GrapeSwaggerRails.options.to_h.to_json %>">
<html data-swagger-options="<%= GrapeSwaggerRails.options.marshal_dump.to_json %>">
<head>
<title><%= GrapeSwaggerRails.options.app_name || 'Swagger UI' %></title>
<link href='//fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'/>
Expand Down

0 comments on commit d5ffbc5

Please sign in to comment.