2012-10-01 18:41:08 +00:00
|
|
|
class Signature < ApplicationModel
|
|
|
|
has_many :groups, :after_add => :cache_update, :after_remove => :cache_update
|
|
|
|
after_create :cache_delete
|
|
|
|
after_update :cache_delete
|
|
|
|
after_destroy :cache_delete
|
2012-10-14 21:00:33 +00:00
|
|
|
validates :name, :presence => true
|
2012-10-01 18:41:08 +00:00
|
|
|
end
|