bugFuchs
This commit is contained in:
parent
c91fbe43b1
commit
23fc3009fe
|
@ -35,4 +35,14 @@ class ServicesController < ApplicationController
|
|||
flash[:success] = 'Successfully removed service'
|
||||
redirect_to services_path
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def origin
|
||||
request.env['omniauth.origin']
|
||||
end
|
||||
|
||||
def omniauth_hash
|
||||
request.env['omniauth.auth']
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
class Service < ActiveRecord::Base
|
||||
attr_accessor :provider, :info
|
||||
|
||||
belongs_to :user
|
||||
validates_uniqueness_of :uid, scope: :type
|
||||
|
||||
|
|
Loading…
Reference in New Issue