undefined method `reject' for false:FalseClass in Carmen::Country.named("Libya").subregions?

67 Views Asked by At

I'm using rails version 5.1.5 and Carmen, and when I do:

Carmen::Country.named("Libya").subregions?

in the rails console, after including carmen succesfully, I get this error:

"NoMethodError: undefined method `reject' for false:FalseClass"

But for other countries it works fine. For example:

Carmen::Country.named("United States").subregions?

returns true. What am I doing wrong?

1

There are 1 best solutions below

0
On

The issue was with an empty file in the yml data for subregions, in the gem folder. carmen-1.0.2/iso_data/base/world/ly.yml.