daddyz / phonelib

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

Add Phonelib#eager_load! for Rails eager loading #288

Closed tgwizard closed 9 months ago

tgwizard commented 10 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 9 months ago

@tgwizard thanks