method
enable_by_argument
v7.0.0 -
Show latest stable
- Class:
Rails::DevCaching
enable_by_argument(caching)public
No documentation available.
# 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