Sha256: 68877681241056c776a22183541f3aeafb167bfb12ce50eee520e58279bae573

Contents?: true

Size: 350 Bytes

Versions: 9

Compression:

Stored size: 350 Bytes

Contents

require 'devise/version'

# Devise 2.1 removes schema stuff
if Devise::VERSION < "2.1"
  require 'devise/schema'
  Devise::Schema.class_eval do
    def openid_authenticatable
      if respond_to?(:apply_devise_schema)
        apply_devise_schema :identity_url, String
      else
        apply_schema :identity_url, String
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
devise_openid_authenticatable-1.3.0 lib/devise_openid_authenticatable/schema.rb
devise_openid_authenticatable-1.2.1 lib/devise_openid_authenticatable/schema.rb
devise_openid_authenticatable-1.2.0 lib/devise_openid_authenticatable/schema.rb
devise_openid_authenticatable-1.1.6 lib/devise_openid_authenticatable/schema.rb
devise_openid_authenticatable-1.1.5 lib/devise_openid_authenticatable/schema.rb
devise_openid_authenticatable-1.1.4 lib/devise_openid_authenticatable/schema.rb
devise_openid_authenticatable-1.1.3 lib/devise_openid_authenticatable/schema.rb
devise_openid_authenticatable-1.1.2 lib/devise_openid_authenticatable/schema.rb
devise_openid_authenticatable-1.1.1 lib/devise_openid_authenticatable/schema.rb