Skip to content

Commit 2e8fc70

Browse files
committed
chore: simplify condition
1 parent 6aa0edf commit 2e8fc70

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@
2020

2121
# Appraisal
2222
gemfiles/*.gemfile.lock
23+
24+
# Local files, such as .env.development.local
25+
*.local

lib/inertia_rails/controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module Controller
1313
helper ::InertiaRails::Helper
1414

1515
after_action do
16-
cookies['XSRF-TOKEN'] = form_authenticity_token unless !protect_against_forgery?
16+
cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery?
1717
end
1818
end
1919

0 commit comments

Comments
 (0)