Module: Promiscuous::Publisher::Model::ActiveRecord::ClassMethods
- Defined in:
- lib/promiscuous/publisher/model/active_record.rb
Instance Method Summary collapse
Instance Method Details
#__promiscuous_missing_record_exception ⇒ Object
8 9 10 |
# File 'lib/promiscuous/publisher/model/active_record.rb', line 8 def __promiscuous_missing_record_exception ActiveRecord::RecordNotFound end |
#belongs_to(*args, &block) ⇒ Object
12 13 14 15 16 |
# File 'lib/promiscuous/publisher/model/active_record.rb', line 12 def belongs_to(*args, &block) super.tap do |association| publish(association.foreign_key) if self.in_publish_block? end end |