diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-10-08 13:45:11 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-10-08 13:45:11 +0200 |
commit | 0a890a7a3069e79bc1029f17ddc59c8fb4409274 (patch) | |
tree | f190aa519b35127f99754d09c129a19b7b4f4ac8 /server/sonar-web | |
parent | ef4fed971ade3a78e20b943f489d5ebf52cb8e37 (diff) | |
download | sonarqube-0a890a7a3069e79bc1029f17ddc59c8fb4409274.tar.gz sonarqube-0a890a7a3069e79bc1029f17ddc59c8fb4409274.zip |
Fix bad merge of server.rb
Diffstat (limited to 'server/sonar-web')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb | 12 |
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 |