class ProjectWithAfterCreateHook

Public Instance Methods

add_david() click to toggle source
# File activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb, line 46
def add_david
  david = DeveloperForProjectWithAfterCreateHook.find_by_name("David")
  david.projects << self
end