Skip to content

Commit 9180c14

Browse files
reeganviljoenekampp
andcommitted
Update lib/view_component/cacheable.rb
Co-authored-by: Emil Kampp <[email protected]>
1 parent f7d5a24 commit 9180c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/view_component/cacheable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module ViewComponent::Cacheable
1010
#
1111
# @private
1212
def view_cache_dependencies
13-
return unless __vc_cache_dependencies.present? && __vc_cache_dependencies.any?
13+
return if __vc_cache_dependencies.blank? || __vc_cache_dependencies.none?
1414

1515
__vc_cache_dependencies.filter_map { |dep| send(dep) }
1616
end

0 commit comments

Comments
 (0)