Konstantin

Results 22 comments of Konstantin

Thanks. You inherit `ApplicationRecord` for your `User` class. ```ruby class User < ApplicationRecord ``` And the gem expects `ActiveRecord::Base` https://github.com/lynndylanhurley/devise_token_auth/blob/ce2cf2c180e6632dd054dd4b099e27f5a264de83/app/models/devise_token_auth/concerns/user.rb#L24-L26 I think here there is the issue for your application....

@Jellyfishboy I have checked my guess in `console`. And it is not confirmed. I have: ```ruby class ApplicationRecord < ActiveRecord::Base class User < ApplicationRecord ``` ```ruby User.const_defined?('ActiveRecord') && User.ancestors.include?(ActiveRecord::Base) =>...

@Jellyfishboy Do not see in you `User` model: ```ruby include DeviseTokenAuth::Concerns::User ``` Do you include this concern somewhere else?

@Jellyfishboy Try to put in your `CustomDeviseAuth` ```ruby included do # Hack to check if devise is already enabled unless self.method_defined?(:devise_modules) devise :database_authenticatable, :registerable, :recoverable, :trackable, :confirmable #:validatable else self.devise_modules.delete(:omniauthable)...

@Jellyfishboy What is custom in your `CustomDeviseAuth`? I think be better do something like this: ```ruby class User < ApplicationRecord include DeviseTokenAuth::Concerns::User include YouCustomMethodsHere # or put your custom methods...

I could not reproduce it. Try [this code](https://github.com/lynndylanhurley/devise_token_auth/blob/e4efa112bb39b1fc0c127ac7866b073b284be36a/app/models/devise_token_auth/concerns/user.rb#L127): ```ruby def tokens_has_json_column_type? # database_exists? && table_exists? && self.columns_hash['tokens'] && self.columns_hash['tokens'].type.in?([:json, :jsonb]) database_exists? && table_exists? && self.type_for_attribute('tokens').type.in?([:json, :jsonb]) end ```

I am working on `mongoid` implementation for the gem #1198 . And I have encountered with failed tests. I.g. they changed [one of validator](https://github.com/rails/rails/commit/47a6d788ddbab08b2a04c72cd80352aac44090ab) behavior. I suggest you use `5-2-stable`...

Hello. There is #1250 PR that should fix this issue. Would you help testing it on your projects?

angular.merge **Deprecated: (since 1.6.5) This function is deprecated, but will not be removed in the 1.x lifecycle. There are edge cases (see known issues) that are not supported by this...

Yes. I checked [code of the gem](https://github.com/mongoid/mongoid-rspec/blob/master/lib/matchers/validations/presence_of.rb). Looks like is not implemented. This issue should be closed or labelled as new feature.