application_controller.rb 173 B

1234567891011
  1. class ApplicationController < ActionController::Base
  2. before_action :add_header
  3. protected
  4. def add_header
  5. response.set_header('Date', Time.now.httpdate)
  6. end
  7. end