Sha256: 447a6b08f23aa770e445b5e655fdbb6fe40f873651a01e16f331706a3c9830ab
Contents?: true
Size: 369 Bytes
Versions: 26
Compression:
Stored size: 369 Bytes
Contents
# encoding: utf-8 class MagicAddresses::Addressible < ActiveRecord::Base belongs_to :owner, polymorphic: true belongs_to :address, class_name: "MagicAddresses::Address", foreign_key: :address_id after_create :log_some_stuff private def log_some_stuff self.address ? self.address.trigger_build_address_associations : true end end
Version data entries
26 entries across 26 versions & 1 rubygems