```ruby
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
```

Add attr_accessors to Authentication model.
user
```ruby
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
```
assistant