Skip to content

Commit

Permalink
Test mongoid w/ rails 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
unused committed Sep 12, 2019
1 parent 0c1b185 commit 3b676f5
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions lib/simple_token_authentication/adapters/mongoid_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
if Module.const_defined?('ActiveModel') &&
ActiveModel.const_defined?('Serializers') &&
ActiveModel::Serializers.const_defined?('Xml')
# As far as I know Mongoid doesn't support Rails 6
# Please let me know if this isn't true when you read it!
require 'mongoid'
require 'simple_token_authentication/adapter'

require 'mongoid'
require 'simple_token_authentication/adapter'
module SimpleTokenAuthentication
module Adapters
class MongoidAdapter
extend SimpleTokenAuthentication::Adapter

module SimpleTokenAuthentication
module Adapters
class MongoidAdapter
extend SimpleTokenAuthentication::Adapter

def self.base_class
::Mongoid::Document
end
def self.base_class
::Mongoid::Document
end
end
end
Expand Down

0 comments on commit 3b676f5

Please sign in to comment.