lib/generators/avo/templates/initializer/avo.tt in avo-2.18.1 vs lib/generators/avo/templates/initializer/avo.tt in avo-2.19.0
- old
+ new
@@ -42,9 +42,13 @@
# config.per_page = 24
# config.per_page_steps = [12, 24, 48, 72]
# config.via_per_page = 8
# config.id_links_to_resource = false
# config.cache_resources_on_index_view = true
+ ## permanent enable or disable cache_resource_filters, default value is false
+ # config.cache_resource_filters = false
+ ## provide a lambda to enable or disable cache_resource_filters per user/resource.
+ # config.cache_resource_filters = ->(current_user:, resource:) { current_user.cache_resource_filters?}
## == Customization ==
# config.app_name = 'Avocadelicious'
# config.timezone = 'UTC'
# config.currency = 'USD'