Class: Impression

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Impressionist::CounterCache, MongoMapper::Document, Mongoid::Document, Mongoid::Timestamps
Defined in:
lib/impressionist/models/mongoid/impression.rb,
app/models/impression.rb,
lib/impressionist/models/mongo_mapper/impression.rb,
lib/impressionist/models/active_record/impression.rb

Overview

Responsability See CounterCache TODO: extract it into a class

  • be able to update_counters

  • log an error if imps_id and imps_type can not be found

  • asks updatable? whether it may or may not be updated

FIX exeception raising when no imps_id is found

Instance Attribute Summary

Attributes included from Impressionist::CounterCache

#entity, #impressionable_class