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

require "rails/dev_caching"

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

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