touches comments and debates after changes

This commit is contained in:
rgarcia
2015-09-05 22:01:24 +02:00
parent 7775da6f8d
commit cba83e6dd2
4 changed files with 14 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
class Administrator < ActiveRecord::Base
belongs_to :user
belongs_to :user, touch: true
delegate :name, :email, to: :user
validates :user_id, presence: true, uniqueness: true