Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Commit

Permalink
Remove reputation_value_for and normalized_reputation_value_for methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Katsuya Noguchi committed Oct 3, 2012
1 parent a41233f commit 552c04b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,5 @@
* Remove reputation_value_for and normalized_reputation_value_for methods.

* Add `evaluations` association for all evaluation targets.

* Set `:sum` as default for `aggregated_by` option.
Expand Down
10 changes: 0 additions & 10 deletions lib/reputation_system/reputation_methods.rb
Expand Up @@ -16,20 +16,10 @@

module ReputationSystem
module ReputationMethods
def reputation_value_for(reputation_name, *args)
warn "[DEPRECATION] `reputation_value_for` will be deprecated in version 2.0.0. Please use `reputation_for` instead."
reputation_for(reputation_name, *args)
end

def reputation_for(reputation_name, *args)
find_reputation(reputation_name, args.first).value
end

def normalized_reputation_value_for(reputation_name, *args)
warn "[DEPRECATION] `normalized_reputation_value_for` will be deprecated in version 2.0.0. Please use `normalized_reputation_for` instead."
normalized_reputation_for(reputation_name, *args)
end

def normalized_reputation_for(reputation_name, *args)
find_reputation(reputation_name, args.first).normalized_value
end
Expand Down

0 comments on commit 552c04b

Please sign in to comment.