aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb
index 51b86ddeffb..eb56e062325 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb
@@ -130,7 +130,7 @@ class Server
end
def sonar_property(key)
- Java::OrgSonarServerUi::JRubyFacade.getInstance().getContainer().getComponentByType(Java::OrgApacheCommonsConfiguration::Configuration.java_class).getProperty(key)
+ Java::OrgSonarServerUi::JRubyFacade.getInstance().getConfigurationValue(key)
end
private
@@ -158,10 +158,6 @@ class Server
java.text.SimpleDateFormat.new("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(date)
end
- def sonar_property(key)
- Java::OrgSonarServerUi::JRubyFacade.getInstance().getContainer().getComponentByType(Java::OrgApacheCommonsConfiguration::Configuration.java_class).getProperty(key)
- end
-
def realm_name
realm_factory = Api::Utils.java_facade.getCoreComponentByClassname('org.sonar.server.user.SecurityRealmFactory')
if realm_factory && realm_factory.getRealm()
@@ -173,9 +169,9 @@ class Server
def jdbc_metadata
@metadata ||=
- begin
- ActiveRecord::Base.connection.instance_variable_get('@connection').connection.get_meta_data
- end
+ begin
+ ActiveRecord::Base.connection.instance_variable_get('@connection').connection.get_meta_data
+ end
end
def system_load_average