application_controller_metal.rb 212 B

12345678
  1. # frozen_string_literal: true
  2. class ApplicationControllerMetal < ActionController::Metal
  3. def add_headers
  4. response.set_header('Server', 'rails')
  5. response.set_header('Date', Time.now.httpdate)
  6. end
  7. end