Sha256: 14a50860d3137179c7dac1c7c1783b8b6e7383130727758bca39317498e655dc
Contents?: true
Size: 445 Bytes
Versions: 17
Compression:
Stored size: 445 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 score 5, :to => :user, :on => [ 'comments#vote' ] score 20, :on => [ 'comments#create', 'registrations#update' ] end end end
Version data entries
17 entries across 17 versions & 1 rubygems