Sha256: 7b4eb5edb0162d41b32e4971c8e629668697ee559fbf925dd2072e07c71bef97
Contents?: true
Size: 526 Bytes
Versions: 3
Compression:
Stored size: 526 Bytes
Contents
# Points are a simple integer value which are given to "meritable" resources # according to rules in +app/models/merit_point_rules.rb+. They are given on # actions-triggered. module Merit class PointRules include Merit::PointRulesMethods def initialize # Thanks for voting point score 1, :on => 'comments#vote' # Points to voted user score 5, :to => :user, :on => 'comments#vote' score 20, :on => [ 'comments#create', 'registrations#update' ] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
merit-0.10.1 | test/dummy/app/models/merit/point_rules.rb |
merit-0.10.0 | test/dummy/app/models/merit/point_rules.rb |
merit-0.9.5 | test/dummy/app/models/merit/point_rules.rb |