Sha256: 9c0d5a8bd8372477e2ff62f226b4e403f65f57b77f6a0e36ad37b2d6e4ca2e65
Contents?: true
Size: 461 Bytes
Versions: 3
Compression:
Stored size: 461 Bytes
Contents
class ReputationIntermediateValue < ActiveRecord::Base belongs_to :user belongs_to :rule, :class_name => 'ReputationRule' validates_presence_of :user validates_presence_of :rule validates_numericality_of :value validates_uniqueness_of :name, :scope => [:user_id, :rule_id] attr_accessible :user, :rule, :name, :value def initialize(args = {}) options = { :value => 0 }.merge(args) super options end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reputation-0.0.4 | app/models/reputation_intermediate_value.rb |
reputation-0.0.3 | app/models/reputation_intermediate_value.rb |
reputation-0.0.2 | app/models/reputation_intermediate_value.rb |