Skip to content

Commit

Permalink
Update cacheable-csrf-token-rails.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
acrolink authored Sep 13, 2017
1 parent f88346e commit 2c08df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cacheable-csrf-token-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def self.included(base)

ApplicationController.const_set "TOKEN_PLACEHOLDER", "__CROSS_SITE_REQUEST_FORGERY_PROTECTION_TOKEN__"
base.class_eval do
after_filter :inject_csrf_token
after_action :inject_csrf_token

private
def inject_csrf_token
Expand Down

0 comments on commit 2c08df6

Please sign in to comment.