Skip to content

Advanced configuration

koen handekyn edited this page Aug 19, 2019 · 5 revisions

Ignore keys

This can be used to ignore keys from external libraries (in case they are properly namespaced at least).

Add the following to your lit config file

Lit.ignored_keys = %w[active_admin simple_form formtastic]

Or as a comma seperated string

Lit.ignored_keys = 'test.of, secondary.key'

To clean up keys from the database, you can use migration that could look like this

Lit.init.cache.reset
Lit::LocalizationKey.where("localization_key LIKE 'active_admin%'").destroy_all
Lit::LocalizationKey.where("localization_key LIKE 'formtastic%'").destroy_all  
Lit.init.cache.reset
Clone this wiki locally