Sha256: 7ae5769af31276db50f05208fd3337c54680b9d8098ce966bcd88dc3b76dfafb

Contents?: true

Size: 271 Bytes

Versions: 1

Compression:

Stored size: 271 Bytes

Contents

class TestCase < ActiveRecord::Base
  include Competition
  attr_accessible :user_id
  belongs_to :user
  keeps_score :if => Proc.new { true },
              :on => [:create],
              :amount => Proc.new { |tc| 1 },
              :for => Proc.new {|o| o.user }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Competition-0.0.2 test/dummy/app/models/test_case.rb