lib/roda/plugins/csrf.rb in roda-2.29.0 vs lib/roda/plugins/csrf.rb in roda-3.0.0

- old
+ new

@@ -6,15 +6,15 @@ module RodaPlugins # The csrf plugin adds CSRF protection using rack_csrf, along with # some csrf helper methods to use in your views. To use it, load # the plugin, with the options hash passed to Rack::Csrf: # - # plugin :csrf, :raise=>true + # plugin :csrf, raise: true # # Optionally you can choose not to setup rack_csrf middleware on the # roda app if you already have one configured: # - # plugin :csrf, :skip_middleware=>true + # plugin :csrf, skip_middleware: true # # This adds the following instance methods: # # csrf_field :: The field name to use for the hidden/meta csrf tag. # csrf_header :: The http header name to use for submitting csrf token via