Skip to content

Commit

Permalink
Update application_controller.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
lvangool authored Nov 1, 2018
1 parent 0ea9323 commit 6088976
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception

def index
Rails.cache.write("test", DateTime.now.to_i.to_s)
end
end

0 comments on commit 6088976

Please sign in to comment.