Skip to content

Setting cache_options expiration without prefix causes prefix to default to nil instead of "geocoder:" #1585

Open
@corwinstephen

Description

@corwinstephen

Expected behavior

With:

Geocoder.configure(
  cache_options: {
    expiration: 1.days },
)
Geocoder.config[:cache_options][:prefix]

should be geocoder:

Actual behavior

Geocoder.config[:cache_options][:prefix]

is nil

Steps to reproduce

Use

Geocoder.configure(
  cache_options: {
    expiration: 1.days },
)

as your config. Then call Geocoder.config[:cache_options][:prefix]

Environment info

  • Geocoder version: 1.8.0
  • Rails version: 6.1.3.2
  • Database (if applicable):
  • Lookup (if applicable):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions