lib/atome/kernel/universe.rb in atome-0.5.2.7 vs lib/atome/kernel/universe.rb in atome-0.5.2.8
- old
+ new
@@ -84,9 +84,13 @@
def current_user
@user
end
+ def current_server
+ `window.location.href` if RUBY_ENGINE.downcase == 'opal'
+ end
+
def current_user=(user)
# TODO: create or load an existing user
# if user needs to be create the current_user will be eVe
@user = user
end