daddyz / phonelib

Ruby gem for phone validation and formatting using google libphonenumber library data
MIT License
1.08k stars 132 forks source link

Add Phonelib#eager_load! for Rails eager loading #288

Closed tgwizard closed 11 months ago

tgwizard commented 12 months ago

Adding Phonelib.eager_load! and adding Phonelib to Rails.application.config.eager_load_namespaces means that in Rails environments that are configured to eager load, Phonelib's data.

I've tested this in a Rails app and it seems to work.

daddyz commented 11 months ago

@tgwizard thanks