Skip to content

Commit

Permalink
Drop 1.8 support from utility methods
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Dec 19, 2024
1 parent 1fcc9cc commit 6f3c648
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/radius/utility.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ def self.camelize(underscored_string)
string
end

if RUBY_VERSION[0,3] == '1.8'
def self.array_to_s(c)
c.to_s
end
elsif RUBY_VERSION[0,3] >= '2.3'
if RUBY_VERSION[0,3] >= '2.3'
def self.array_to_s(c)
c.map do |x|
res = (x.is_a?(Array) ? array_to_s(x) : x.to_s)
Expand Down

0 comments on commit 6f3c648

Please sign in to comment.