]> source.dussan.org Git - sonarqube.git/commitdiff
add the ruby method Snapshot#resource (alias of Snapshot #project)
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 12 Nov 2010 13:28:09 +0000 (13:28 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 12 Nov 2010 13:28:09 +0000 (13:28 +0000)
sonar-server/src/main/webapp/WEB-INF/app/models/snapshot.rb

index de2cc9cac9124b2f8a10329d46e978b081946d5f..95db00d803de844123496dc45af5ba9710edfdeb 100644 (file)
@@ -174,6 +174,10 @@ class Snapshot < ActiveRecord::Base
     end
   end
 
+  def resource
+    project
+  end
+
   def resource_id_for_authorization
     root_project_id || project_id
   end