method

enable_by_argument

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: DevCaching
enable_by_argument(caching) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/dev_caching.rb, line 24
      def enable_by_argument(caching)
        FileUtils.mkdir_p("tmp")

        if caching
          create_cache_file
        elsif caching == false && File.exist?(FILE)
          delete_cache_file
        end
      end
Register or log in to add new notes.