Skip to content

Commit

Permalink
Fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximeRVY committed Jun 12, 2020
1 parent 7762b53 commit 0422d68
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/grape-swagger/entity/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def model_name(entity_model, endpoint)

def discriminator(entity_model)
entity_model.superclass.root_exposures.detect do |value|
value.documentation.try(:[], :is_discriminator)
value.documentation.dig(:is_discriminator)
end
end

Expand Down
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

require 'rack'
require 'rack/test'
require 'pry'

RSpec.configure do |config|
require 'rspec/expectations'
Expand Down

0 comments on commit 0422d68

Please sign in to comment.