Sha256: 19d7118fcfcd32f3cb1f139f95166fec776b9c1537e068b6367b4e2648abbea6

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

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'

  module SimpleTokenAuthentication
    module Adapters
      class MongoidAdapter
        extend SimpleTokenAuthentication::Adapter

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_token_authentication-1.16.0 lib/simple_token_authentication/adapters/mongoid_adapter.rb