Skip to content

Commit

Permalink
Add resource_explanation default nil
Browse files Browse the repository at this point in the history
  • Loading branch information
PavloBezpalov committed Oct 20, 2016
1 parent 20dd559 commit 2ef1996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/raddocs/models.rb
Expand Up @@ -51,7 +51,7 @@ class Example

def initialize(file)
@attrs = JSON.parse(File.read(file))
@resource_explanation = @attrs.fetch("resource_explanation")
@resource_explanation = @attrs.fetch("resource_explanation", nil)
@resource = @attrs.fetch("resource")

@description = @attrs.fetch("description")
Expand Down

0 comments on commit 2ef1996

Please sign in to comment.