nsarno / knock

Seamless JWT authentication for Rails API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined method `handle_attr' for Knock:Module

obelich opened this issue · comments

hiyas i have recent update my production app and i get this error

NoMethodError in Api::V1::UserTokenController#create
undefined method `handle_attr' for Knock:Module

In development it work perfect but in production it send this error can i get a help plz

List of gems

Using rake 12.3.0
Using concurrent-ruby 1.0.5
Using i18n 0.9.1
Using minitest 5.10.3
Using thread_safe 0.3.6
Using tzinfo 1.2.4
Using activesupport 5.1.4
Using builder 3.2.3
Using erubi 1.7.0
Using mini_portile2 2.3.0
Using nokogiri 1.8.1
Using rails-dom-testing 2.0.3
Using crass 1.0.3
Using loofah 2.1.1
Using rails-html-sanitizer 1.0.3
Using actionview 5.1.4
Using rack 2.0.3
Using rack-test 0.8.2
Using actionpack 5.1.4
Using nio4r 2.1.0
Using websocket-extensions 0.1.3
Using websocket-driver 0.6.5
Using actioncable 5.1.4
Using globalid 0.4.1
Using activejob 5.1.4
Using mini_mime 1.0.0
Using mail 2.7.0
Using actionmailer 5.1.4
Using public_suffix 3.0.1
Using addressable 2.5.2
Using active_link_to 1.0.5
Using activemodel 5.1.4
Using arel 8.0.0
Using activerecord 5.1.4
Using execjs 2.7.0
Using autoprefixer-rails 7.2.3
Using rb-fsevent 0.10.2
Using ffi 1.9.18
Using rb-inotify 0.9.10
Using sass-listen 4.0.0
Using sass 3.5.4
Using bootstrap-sass 3.3.4.1
Using adminlte2-rails 0.0.6
Using ansi 1.5.0
Using bcrypt 3.1.11
Using bcrypt-ruby 3.1.5
Using bindex 0.5.0
Using method_source 0.9.0
Using thor 0.20.0
Using railties 5.1.4
Using bootstrap-datepicker-rails 1.7.1.1
Using bundler 1.16.0
Using byebug 9.1.0
Using xpath 2.1.0
Using capybara 2.16.1
Using childprocess 0.8.0
Using climate_control 0.2.0
Using cocaine 0.5.8
Using coffee-script-source 1.12.2
Using coffee-script 2.4.1
Using coffee-rails 4.2.2
Using multipart-post 2.0.0
Using faraday 0.13.1
Using json 2.1.0
Using sys-uname 1.0.3
Using conekta 2.0.0
Using connection_pool 2.2.1
Using css_parser 1.6.0
Using orm_adapter 0.5.0
Using responders 2.4.0
Using warden 1.2.7
Using devise 4.3.0
Using unf_ext 0.0.7.5
Using unf 0.1.4
Using domain_name 0.5.20170404
Using dotenv 2.4.0
Using dotenv-rails 2.4.0
Using sprockets 3.7.1
Using sprockets-rails 3.2.1
Using rails 5.1.4
Using dropzonejs-rails 0.8.2
Using font-awesome-sass 5.0.9
Using temple 0.8.0
Using tilt 2.0.8
Using haml 5.0.4
Using htmlentities 4.3.4
Using http-2 0.8.4
Using http-cookie 1.0.3
Using jquery-rails 4.3.1
Using sass-rails 5.0.7
Using icheck-rails 1.0.2.2
Using multi_json 1.12.2
Using jbuilder 2.7.0
Using jquery-inputmask-rails 2.5.5
Using jquery-knob-rails 1.2.13
Using jwt 1.5.6
Using kaminari-core 1.1.1
Using kaminari-actionview 1.1.1
Using kaminari-activerecord 1.1.1
Using kaminari 1.1.1
Using kaminari-bootstrap 3.0.1
Using knock 2.1.1
Using lightbox2-rails 2.8.2.1
Using ruby_dep 1.5.0
Using listen 3.1.5
Using mime-types-data 3.2016.0521
Using mime-types 3.1
Using mimemagic 0.3.2
Using net-http-persistent 3.0.0
Using net-http2 0.16.0
Using netrc 0.11.0
Using paperclip 5.1.0
Using paranoia 2.4.0
Using pg 0.21.0
Using phony 2.16.2
Using polyamorous 1.3.1
Using premailer 1.11.1
Using premailer-rails 1.10.1
Using puma 3.11.0
Using rack-proxy 0.6.4
Using ransack 1.8.4 from https://github.com/activerecord-hackery/ransack.git (at master@724d020)
Using rest-client 2.0.2
Using rpush 3.0.1
Using rubyzip 1.2.1
Using select2-rails 4.0.3
Using selenium-webdriver 3.8.0
Using spring 2.0.2
Using spring-watcher-listen 2.0.1
Using sqlite3 1.3.13
Using toastr-rails 1.0.3
Using turbolinks-source 5.0.3
Using turbolinks 5.0.1
Using uglifier 4.0.2
Using web-console 3.5.1
Using webpacker 3.5.3

This happened to me after updating knock. I had to delete config/initializers/knock.rb and re-run rails generate knock:install.