class Authentication < ActiveRecord::Base
    belongs_to :user

    def update_omniauth(omniauth)
        self.update_attributes(:provider => omniauth['provider'], 
                          :uid => omniauth['uid'], 
                          :token => omniauth['credentials']['token'], 
                          :secret => omniauth['credentials']['secret'], 
                          :name => omniauth['info']['nickname'])
    end
end

class Authentication < ActiveRecord::Base
  attr_accessible :provider, :uid, :token, :secret, :name

  belongs_to :user

  def update_omniauth(omniauth)
    self.update_attributes(:provider => omniauth['provider'],
      :uid => omniauth['uid'],
      :token => omniauth['credentials']['token'],
      :secret => omniauth['credentials']['secret'],
      :name => omniauth['info']['nickname'])
  end
end

Add attr_accessors to Authentication model.
Add attr_accessors to Authentication model.
