Skip to content

Instantly share code, notes, and snippets.

View dresselm's full-sized avatar
💭
reviewing PRs

Matt Dressel dresselm

💭
reviewing PRs
View GitHub Profile
class Organisation < ActiveRecord::Base
has_many :people
has_one :address, :as => :addressable,
:dependent => :destroy
accepts_nested_attributes_for :address, :allow_destroy => true
end
class Person < ActiveRecord::Base