Sha256: 66cbcea155e9664aadd23fa54459896a88486f645b48b1d8778d3b193bdd8cf5

Contents?: true

Size: 480 Bytes

Versions: 9

Compression:

Stored size: 480 Bytes

Contents

# coding: utf-8
class Authentication < ActiveRecord::Base
  validates_presence_of :provider, :uid
  attr_accessible :user_id, :provider, :uid, :name, :email

  belongs_to :user

  xss_terminate

  class << self
    def providers
      [
        ["facebook", "Facebook"],
        ["vkontakte", "Vkontakte"],
        ["odnoklassniki", "Odnoklassniki"]
        # ['twitter', 'Twitter'],
        # ['github', 'Github'],
        # ['google_oauth2', 'Google']
      ]
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
devise_russian-0.0.29 app/models/authentication.rb
devise_russian-0.0.28 app/models/authentication.rb
devise_russian-0.0.27 app/models/authentication.rb
devise_russian-0.0.26 app/models/authentication.rb
devise_russian-0.0.25 app/models/authentication.rb
devise_russian-0.0.24 app/models/authentication.rb
devise_russian-0.0.23 app/models/authentication.rb
devise_russian-0.0.22 app/models/authentication.rb
devise_russian-0.0.21 app/models/authentication.rb