Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove reputation_value_for and normalized_reputation_value_for methods

commit 552c04b0dead76cd79fb3915845b17b6a8de0cca 1 parent a41233f
Katsuya Noguchi authored
Showing with 2 additions and 10 deletions.
  1. +2 −0  CHANGELOG.md
  2. +0 −10 lib/reputation_system/reputation_methods.rb
View
2  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.
View
10 lib/reputation_system/reputation_methods.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.