Sha256: a8a24d3f044481b51674405ad379c249d9f2355895803f5f13ae8a3e85a73688
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 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 Rails.logger.info "===" Rails.logger.info "=== #{self.inspect}" Rails.logger.info "===" self.address ? self.address.trigger_build_address_associations : true Rails.logger.info "===" Rails.logger.info "=== #{self.inspect}" Rails.logger.info "===" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
magic_addresses-0.0.14 | lib/app/models/magic_addresses/addressible.rb |
magic_addresses-0.0.13 | lib/app/models/magic_addresses/addressible.rb |