Sha256: a1648676ef9c1a66a461ea90aef0b1617b340deee31bf30df7fa7583731d917a

Contents?: true

Size: 363 Bytes

Versions: 6

Compression:

Stored size: 363 Bytes

Contents

# -*- encoding : utf-8 -*-
module LoyalCore
  # 
  class LikeTrack < ActiveRecord::Base
    attr_accessible :position

    # self.acts_as_tiny_cached

    self.loyal_passport_acts_as_creator_able

    belongs_to :target, :polymorphic => true, :counter_cache => :liked_count

    validates_uniqueness_of :created_by, :scope => [:target_id, :target_type]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
loyal_core-0.0.6 app/models/loyal_core/like_track.rb
loyal_core-0.0.5 app/models/loyal_core/like_track.rb
loyal_core-0.0.4 app/models/loyal_core/like_track.rb
loyal_core-0.0.3 app/models/loyal_core/like_track.rb
loyal_core-0.0.2 app/models/loyal_core/like_track.rb
loyal_core-0.0.1 app/models/loyal_core/like_track.rb