lib/smsified/helpers.rb in smsified-0.1.7 vs lib/smsified/helpers.rb in smsified-0.1.8

- old
+ new

@@ -37,11 +37,11 @@ query = '' options.each do |k,v| if k == :address - if RUBY_VERSION.to_f == 1.9 + if RUBY_VERSION.to_f >= 1.9 if v.instance_of?(String) v.each_line { |address| query += "#{ '&' if query != '' }address=#{CGI.escape address}" } else v.each { |address| query += "#{ '&' if query != '' }address=#{CGI.escape address}" } end @@ -54,6 +54,6 @@ end query end end -end \ No newline at end of file +end