Skip to content

Commit

Permalink
Merge pull request #32 from suan/ruby_19_swagger_options_fix
Browse files Browse the repository at this point in the history
use Ostruct#marshal_dump instead of #to_h to support Ruby 1.9.3
  • Loading branch information
dblock committed Oct 7, 2015
2 parents 0b70202 + 2077dce commit 6f6e6dc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rvm:
- 2.2.3
- 2.1.7
- 2.0.0
- 1.9.3

env:
- GRAPE_SWAGGER_VERSION=0.8.0
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Grape-swagger 0.7.2 is no longer supported - [@dblock](https://github.com/dblock).
* Implemented RuboCop, Ruby-style linter - [@dblock](https://github.com/dblock).
* [#31](https://github.com/ruby-grape/grape-swagger-rails/pull/31): Support Swagger-UI docExpansion option - [@maruware](https://github.com/maruware).
* [#32](https://github.com/ruby-grape/grape-swagger-rails/pull/32): Fix Ruby 1.9.3 compatibility - [@suan](https://github.com/suan).
* Your contribution here.

### 0.1.0 (February 5, 2015)
Expand Down
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 6f6e6dc

Please sign in to comment.