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 f7d5a24 commit 9180c14Copy full SHA for 9180c14
lib/view_component/cacheable.rb
@@ -10,7 +10,7 @@ module ViewComponent::Cacheable
10
#
11
# @private
12
def view_cache_dependencies
13
- return unless __vc_cache_dependencies.present? && __vc_cache_dependencies.any?
+ return if __vc_cache_dependencies.blank? || __vc_cache_dependencies.none?
14
15
__vc_cache_dependencies.filter_map { |dep| send(dep) }
16
end
0 commit comments