Sha256: 96abb19cf60527b698a4bb02e8adbc824fcffb795c8cfc9abab062e2c1817438

Contents?: true

Size: 184 Bytes

Versions: 8

Compression:

Stored size: 184 Bytes

Contents

class Authentication < ActiveRecord::Base
  belongs_to :user
  
  def provider_name
    if provider == 'open_id'
      "OpenID"
    else
      provider.to_s.titleize
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
contour-0.8.4 app/models/authentication.rb
contour-0.8.3 app/models/authentication.rb
contour-0.8.2 app/models/authentication.rb
contour-0.8.1 app/models/authentication.rb
contour-0.8.0 app/models/authentication.rb
contour-0.7.2 app/models/authentication.rb
contour-0.7.1 app/models/authentication.rb
contour-0.7.0 app/models/authentication.rb