GeneralScripting / pipedrive-ruby

31 stars 148 forks source link

Can't get Stage.all when the response has no pagination #31

Open marcelinol opened 9 years ago

marcelinol commented 9 years ago

When the response of Stage.all has no pagination, I got and exception and don't receive the pipelines stages.

NoMethodError: undefined method[]' for nil:NilClass`

because of base:91 res['additional_data']['pagination'].