Sha256: 6fcda7d053513a786babf286b99b55d402af0fe471b9f4b36c60ed08e614d4b4
Contents?: true
Size: 493 Bytes
Versions: 20
Compression:
Stored size: 493 Bytes
Contents
class Reference < ActiveRecord::Base belongs_to :person belongs_to :job has_many :agents_posts_authors, :through => :person class << self; attr_accessor :make_comments; end self.make_comments = false before_destroy :make_comments def make_comments if self.class.make_comments person.update comments: "Reference destroyed" end end end class BadReference < ActiveRecord::Base self.table_name = 'references' default_scope { where(:favourite => false) } end
Version data entries
20 entries across 20 versions & 3 rubygems