Simplify `verify_key` method in resource - The switch statement returns a proc, only to `.call` it. Remove the call statement and run the code directly in the switch statement. - Remove rescue block in `:integer` case. The method will rescue appropriately without it. - Rather than `return key if nil` just return
Simplify `verify_key` method in resource
- The switch statement returns a proc, only to `.call` it. Remove the call statement and run the code directly in the switch statement.
- Remove rescue block in `:integer` case. The method will rescue appropriately without it.
- Rather than `return key if nil` just return

This also removes rspec warnings (x3):
warning: shadowing outer local variable - key 
warning: shadowing outer local variable - context
Skeduna/jsonapi-resources,iamvery/jsonapi-resources,localytics/jsonapi-resources,kevintraver/jsonapi-resources,jsmestad/jsonapi-resources,cerebris/jsonapi-resources,AKHarris/jsonapi-resources,senid231/jsonapi-resources,harisadam/jsonapi-resources,togglepro/jsonapi-resources