Skip to content

Commit

Permalink
don't ask for use cases in deprecation warning of Rsolr::Uri.bytesize
Browse files Browse the repository at this point in the history
  • Loading branch information
ndushay committed Feb 25, 2015
1 parent 75c2836 commit cb8a6ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rsolr/uri.rb
Expand Up @@ -59,12 +59,12 @@ def escape_query_value(s)
# @deprecated as bytesize was only used by escape_query_value which is itself deprecated
if ''.respond_to?(:bytesize)
def bytesize(string)
warn "[DEPRECATION] `bytesize` is deprecated. If you are using it, please provide use case to github.com/rsolr/rsolr as an issue."
warn "[DEPRECATION] `bytesize` is deprecated. Use String.bytesize"
string.bytesize
end
else
def bytesize(string)
warn "[DEPRECATION] `bytesize` is deprecated. If you are using it, please provide use case to github.com/rsolr/rsolr as an issue."
warn "[DEPRECATION] `bytesize` is deprecated. Use String.size"
string.size
end
end
Expand Down

0 comments on commit cb8a6ce

Please sign in to comment.