Sha256: bf3ea17b13097a77d79645aa4443207a583f0f40f3193e81aa0a2ed03975c6a5
Contents?: true
Size: 656 Bytes
Versions: 10
Compression:
Stored size: 656 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' ] do |object| if object.class == Comment object.name.length > 4 else true end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems