Sha256: 36c2ffc18ea499a54f3fac0663ca56e47b1e4644d81b3493d8555b1b3f35ab6a

Contents?: true

Size: 445 Bytes

Versions: 23

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

23 entries across 16 versions & 1 rubygems

Version Path
merit-1.0.0 test/dummy-mongoid/app/models/merit/point_rules.rb
merit-0.10.1 test/dummy-mongoid/app/models/merit/point_rules.rb
merit-0.10.0 test/dummy-mongoid/app/models/merit/point_rules.rb
merit-0.9.5 test/dummy-mongoid/app/models/merit/point_rules.rb
merit-0.9.4 test/dummy/app/models/merit/point_rules.rb
merit-0.9.4 test/dummy-mongoid/app/models/merit/point_rules.rb
merit-0.9.3 test/dummy/app/models/merit/point_rules.rb
merit-0.9.3 test/dummy-mongoid/app/models/merit/point_rules.rb
merit-0.9.2 test/dummy/app/models/merit/point_rules.rb
merit-0.9.2 test/dummy-mongoid/app/models/merit/point_rules.rb
merit-0.9.1 test/dummy-mongoid/app/models/merit/point_rules.rb
merit-0.9.1 test/dummy/app/models/merit/point_rules.rb
merit-0.9.0 test/dummy-mongoid/app/models/merit/point_rules.rb
merit-0.9.0 test/dummy/app/models/merit/point_rules.rb
merit-0.8.1 test/dummy/app/models/merit/point_rules.rb
merit-0.8.1 test/dummy-mongoid/app/models/merit/point_rules.rb
merit-0.8.0 test/dummy-mongoid/app/models/merit/point_rules.rb
merit-0.8.0 test/dummy/app/models/merit/point_rules.rb
merit-0.7.1 test/dummy/app/models/merit/point_rules.rb
merit-0.7.0 test/dummy/app/models/merit/point_rules.rb