Sha256: 3e7410112380f6a46e4fbbc55f5fe3f2a67693c0807cbf3df3520be8bf96deea

Contents?: true

Size: 462 Bytes

Versions: 5

Compression:

Stored size: 462 Bytes

Contents

require 'devise'
require 'rack/oauth2'
require 'devise_oauth2_providable/strategy'
require 'devise_oauth2_providable/model'
require 'devise_oauth2_providable/schema'
require 'devise_oauth2_providable/engine'

module Devise
  module Oauth2Providable
    class << self
      def random_id
        ActiveSupport::SecureRandom.hex
      end
    end
  end
end

Devise.add_module(:oauth2_providable,
  :strategy => true,
  :model => 'devise_oauth2_providable/model')

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
devise_oauth2_providable-0.2.4 lib/devise_oauth2_providable.rb
devise_oauth2_providable-0.2.3 lib/devise_oauth2_providable.rb
devise_oauth2_providable-0.2.2 lib/devise_oauth2_providable.rb
devise_oauth2_providable-0.2.1 lib/devise_oauth2_providable.rb
devise_oauth2_providable-0.2.0 lib/devise_oauth2_providable.rb