We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7661cf5 commit f7d5a24Copy full SHA for f7d5a24
lib/view_component/cacheable.rb
@@ -12,7 +12,7 @@ module ViewComponent::Cacheable
12
def view_cache_dependencies
13
return unless __vc_cache_dependencies.present? && __vc_cache_dependencies.any?
14
15
- __vc_cache_dependencies.map { |dep| send(dep) }.compact
+ __vc_cache_dependencies.filter_map { |dep| send(dep) }
16
end
17
18
# For handeling the output_preamble and output_postamble
0 commit comments