1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-26 20:54:21 +01:00
fab-manager/app/models/organization.rb
2016-08-01 17:36:38 +02:00

5 lines
162 B
Ruby

class Organization < ActiveRecord::Base
has_one :address, as: :placeable, dependent: :destroy
accepts_nested_attributes_for :address, allow_destroy: true
end