Frozen strings are a bit faster.
@@ -1,4 +1,5 @@
# frozen_string_literal: true
+
class ApplicationController < ActionController::Base
before_action :add_header
class ApplicationControllerMetal < ActionController::Metal
def add_headers
response.set_header('Server', 'rails')
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
class JsonController < ApplicationControllerMetal
def index
add_headers
class PlaintextController < ApplicationControllerMetal