lib/morale/connection_store.rb in morale-client-1.0.2 vs lib/morale/connection_store.rb in morale-client-1.0.3
- old
+ new
@@ -5,18 +5,17 @@
module ConnectionStore
include Morale::Storage
include Morale::Platform
def base_url
- # if @base_url.nil?
- # @base_url = read_connection
- # if @base_url.nil?
- # @base_url = default_base_url
- # self.write_connection
- # end
- # end
- # @base_url
- 'teammorale.com'
+ if @base_url.nil?
+ @base_url = read_connection
+ if @base_url.nil?
+ @base_url = default_base_url
+ self.write_connection
+ end
+ end
+ @base_url
end
def base_url=(value)
@base_url = value
self.write_connection
\ No newline at end of file