CSRF tokens were being overly checked, and breaking most edition forms...

This commit is contained in:
echarp 2018-02-07 14:41:35 +01:00
parent b989e079f0
commit e624bcf375
1 changed files with 5 additions and 0 deletions

View File

@ -42,5 +42,10 @@ module AgendaDuLibreRails
# In rails 4, plugin and vendor images need to be precompiled
config.assets.precompile += %w[*.png *.jpg *.jpeg *.gif]
# Rails 5 now defaults to csrf tokens per form, which breaks adl for the
# time being
# TODO
config.action_controller.per_form_csrf_tokens = false
end
end