Sha256: 6fe1a5faa2fa22740e1bc98b390e7a18853ddfc71555b2d6a7dcf034c15b602e

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

class Rating < ActiveRecord::Base
  belongs_to :rateable, :polymorphic=>true
  belongs_to :user  
  validates_uniqueness_of :rateable_type, :scope=> SocialEngine::Helpers::Fingerprint.fingerprint_type(:rateable_id),
                          :if => Proc.new { |x| SocialEngineYetting.fingerprint_method != "none" }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
social_engine-0.0.1 app/models/rating.rb