Sha256: 6922ce889d052e4ea7b31073ed56c9fe054117348b776e2cacfbd296f35aaf7d
Contents?: true
Size: 622 Bytes
Versions: 16
Compression:
Stored size: 622 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, either to the action user or to the method (or array of # methods) defined in the +:to+ option. module Merit class PointRules include Merit::PointRulesMethods def initialize # score 10, :on => [ # 'users#update' # ] # # score 15, :on => 'reviews#create', :to => [:reviewer, :reviewed] # # score 20, :on => [ # 'comments#create', # 'photos#create' # ] end end end
Version data entries
16 entries across 16 versions & 1 rubygems