nsarno / knock

Seamless JWT authentication for Rails API
MIT License
2.07k stars 253 forks source link

Support rails 6 autoload zeitwerk #240

Closed ShakeJ closed 5 years ago

ShakeJ commented 5 years ago

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?

flvrone commented 5 years ago

Hey @ShakeJ, why did you close an issue?

ShakeJ commented 5 years ago

@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 : https://github.com/rails/rails/issues/36381 Thanks.

johnknapp commented 5 years ago

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

Mayurifag commented 5 years ago

Any work on this?

ShakeJ commented 5 years ago

thanks :)

tisba commented 4 years ago

How did you solve this issue, @ShakeJ?

nsarno commented 4 years ago

The issue should be fixed once #248 is merged.