Fixed caching.

This commit is contained in:
Martin Edenhofer 2012-07-29 21:32:37 +02:00
parent fb910d03a3
commit b4bb6ae059

View file

@ -1,5 +1,5 @@
class Authorization < ApplicationModel
belongs_to :user, :after_add => :cache_update, :after_remove => :cache_update
belongs_to :user
validates_presence_of :user_id, :uid, :provider
validates_uniqueness_of :uid, :scope => :provider