Class: DagLink

Inherits:
ActiveRecord::Base show all
Defined in:
app/models/dag_link.rb

Direct Known Subclasses

UserGroupMembership

Instance Method Summary collapse

Methods inherited from ActiveRecord::Base

#readonly?

Instance Method Details

#delete_cacheObject



24
25
26
27
28
# File 'app/models/dag_link.rb', line 24

def delete_cache
  super
  ancestor.try(:delete_cache)
  descendant.try(:delete_cache)
end

#fill_cacheObject



20
21
22
# File 'app/models/dag_link.rb', line 20

def fill_cache
  valid_from
end