instance method execute_if_updated

Ruby on Rails 7.0.10

Since v7.0.10 Last seen in v7.0.10

Signature

execute_if_updated()

No documentation comment.

Source
# File actionview/lib/action_view/cache_expiry.rb, line 41
      def execute_if_updated
        @mutex.synchronize do
          watched_dirs = dirs_to_watch
          return if watched_dirs.empty?

          if watched_dirs != @watched_dirs
            @watched_dirs = watched_dirs
            @watcher = @watcher_class.new([], watched_dirs, &@block)
            @watcher.execute
          else
            @watcher.execute_if_updated
          end
        end
      end

Defined in actionview/lib/action_view/cache_expiry.rb line 41 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::CacheExpiry::ViewModificationWatcher

Type at least 2 characters to search.

↑↓ navigate · open · esc close