lib/divining_rod/utilities.rb in divining_rod-0.5.0 vs lib/divining_rod/utilities.rb in divining_rod-0.6.0
- old
+ new
@@ -1,8 +1,8 @@
module DiviningRod
class Utilities
-
+
def self.parse_subdomain(request)
env = request.env
if forwarded = env["HTTP_X_FORWARDED_HOST"]
host = forwarded.split(/,\s?/).last
else
@@ -12,8 +12,8 @@
host.sub(/\:\d+/, '').split('.')
else
[]
end
end
-
+
end
-end
\ No newline at end of file
+end