aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/dev/dev_command.rb
blob: a3f02f317241d6f39ceecd6532b67c7041df3366 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

require "rails/dev_caching"

module Rails
  module Command
    class DevCommand < Base # :nodoc:
      def help
        say "rails dev:cache # Toggle development mode caching on/off."
      end

      def cache
        Rails::DevCaching.enable_by_file
      end
    end
  end
end