nsarno / knock

Seamless JWT authentication for Rails API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support rails 6 autoload zeitwerk

ShakeJ opened this issue · comments

commented

Rails 6 default auto loader is 'zeitwerk',
스크린샷 2019-06-02 오후 10 50 48

This method requires that the file name be exactly in the class name, but is there a support policy for that method?

Hey @ShakeJ, why did you close an issue?

commented

@FunkyloverOne Hi :) I used knock gem!
My project upgrade rails 6.0, and some problem happend.
rails 6.0 changed default autoloader is classic to zeitwerk.
but knock gem is not acceptable autoloader(zeitwerk).

Please check this discussion : rails/rails#36381
Thanks.

The solution outlined in the discussion mentioned above did not solve the ActionController::InvalidAuthenticityToken in rails 6.0.0.rc2

Any work on this?

commented

thanks :)

How did you solve this issue, @ShakeJ?

The issue should be fixed once #248 is merged.