theseus/app/models/concerns/has_address.rb
2025-05-31 23:25:41 -04:00

8 lines
161 B
Ruby

module HasAddress
extend ActiveSupport::Concern
included do
belongs_to :address
accepts_nested_attributes_for :address, update_only: true
end
end