Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0a12a5f816
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.482 kb
class Reference < ActiveRecord::Base
belongs_to :person
belongs_to :job
has_many :agents_posts_authors, :through => :person
class << self
attr_accessor :make_comments
end
before_destroy :make_comments
def make_comments
if self.class.make_comments
person.update_attributes :comments => "Reference destroyed"
end
end
end
class BadReference < ActiveRecord::Base
self.table_name = 'references'
default_scope { where(:favourite => false) }
end
Jump to Line
Something went wrong with that request. Please try again.