Sha256: 75a9918dd68d694f90c57d0776cba7af48483d3dba3aef125f6faeed6036f356

Contents?: true

Size: 403 Bytes

Versions: 9

Compression:

Stored size: 403 Bytes

Contents

# Responsability
# * logs an error if imps_id and imps_type can not be found
# * asks updatable? whether it may or may not be updated

class Impression < ActiveRecord::Base

  include Impressionist::CounterCache

  # sets belongs_to and attr_accessible depending on Rails version
  Impressionist::SetupAssociation.new(self).set

  store :params
  after_save :impressionable_counter_cache_updatable?
end

Version data entries

9 entries across 9 versions & 3 rubygems

Version Path
impressionist-cody-2.0.0 lib/impressionist/models/active_record/impression.rb
impressionist-2.0.0 lib/impressionist/models/active_record/impression.rb
impressionist-1.6.1 lib/impressionist/models/active_record/impression.rb
impressionist-1.6.0 lib/impressionist/models/active_record/impression.rb
impressionist-1.5.2 lib/impressionist/models/active_record/impression.rb
impressionist2-1.5.5 lib/impressionist/models/active_record/impression.rb
impressionist2-1.5.4 lib/impressionist/models/active_record/impression.rb
impressionist2-1.5.3 lib/impressionist/models/active_record/impression.rb
impressionist2-1.5.1 lib/impressionist/models/active_record/impression.rb