2016-08-01 17:36:38 +02:00
|
|
|
class Organization < ActiveRecord::Base
|
2016-08-02 12:27:45 +02:00
|
|
|
belongs_to :profile
|
2016-08-01 17:36:38 +02:00
|
|
|
has_one :address, as: :placeable, dependent: :destroy
|
|
|
|
accepts_nested_attributes_for :address, allow_destroy: true
|
|
|
|
end
|