[38296] branches/gsoc08-mpwa/app/models/tag.rb
digx at macports.org
digx at macports.org
Mon Jul 14 21:45:18 PDT 2008
Revision: 38296
http://trac.macosforge.org/projects/macports/changeset/38296
Author: digx at macports.org
Date: 2008-07-14 21:45:18 -0700 (Mon, 14 Jul 2008)
Log Message:
-----------
No more Tag model for us
Removed Paths:
-------------
branches/gsoc08-mpwa/app/models/tag.rb
Deleted: branches/gsoc08-mpwa/app/models/tag.rb
===================================================================
--- branches/gsoc08-mpwa/app/models/tag.rb 2008-07-15 04:45:01 UTC (rev 38295)
+++ branches/gsoc08-mpwa/app/models/tag.rb 2008-07-15 04:45:18 UTC (rev 38296)
@@ -1,18 +0,0 @@
-class Tag < ActiveRecord::Base
- has_and_belongs_to_many :ports
- has_and_belongs_to_many :port_pkgs
-
- before_save 'self.name = name.downcase' # force tag name to be lowercase
-
- def <=>(other)
- self.name <=> other.name
- end
-
- def self.find_by_name_or_id(id, *args)
- if tag = (find_by_name(id, *args) || find_by_id(id, *args))
- return tag
- else
- raise ActiveRecord::RecordNotFound, "Couldn't find #{self.name} with ID=#{id}"
- end
- end
-end
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080714/d302d184/attachment.html
More information about the macports-changes
mailing list