[84012] branches/gsoc11-statistics/stats-server/app/models/port.rb

derek at macports.org derek at macports.org
Wed Sep 14 17:30:23 PDT 2011


Revision: 84012
          http://trac.macports.org/changeset/84012
Author:   derek at macports.org
Date:     2011-09-14 17:30:21 -0700 (Wed, 14 Sep 2011)
Log Message:
-----------
Removed unnecessary has_one association. Port already belongs_to category.

Modified Paths:
--------------
    branches/gsoc11-statistics/stats-server/app/models/port.rb

Modified: branches/gsoc11-statistics/stats-server/app/models/port.rb
===================================================================
--- branches/gsoc11-statistics/stats-server/app/models/port.rb	2011-09-15 00:05:32 UTC (rev 84011)
+++ branches/gsoc11-statistics/stats-server/app/models/port.rb	2011-09-15 00:30:21 UTC (rev 84012)
@@ -1,9 +1,7 @@
 class Port < ActiveRecord::Base
-  has_one :category
   belongs_to :category
   has_many :installed_ports
 
-
   validates_presence_of :name, :version
 
   def self.search(criteria, val, page)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110914/5fad7c2a/attachment.html>


More information about the macports-changes mailing list