]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
Revert broken attempt at potlatch_010 merge.
[rails.git] / app / models / relation.rb
index 5d7092908baa302c868cf8725378fb7d43763355..9ee118f6e0c22fb26f4bff0012e30e3cb2c92173 100644 (file)
@@ -105,24 +105,6 @@ class Relation < ActiveRecord::Base
     return el1
   end 
 
-  def self.find_for_nodes(ids, options = {})
-    self.with_scope(:find => { :joins => "INNER JOIN current_relation_members ON current_relation_members.id = current_relations.id", :conditions => "current_relation_members.member_type = 'node' AND current_relation_members.member_id IN (#{ids.join(',')})" }) do
-      return self.find(:all, options)
-    end
-  end
-
-  def self.find_for_ways(ids, options = {})
-    self.with_scope(:find => { :joins => "INNER JOIN current_relation_members ON current_relation_members.id = current_relations.id", :conditions => "current_relation_members.member_type = 'way' AND current_relation_members.member_id IN (#{ids.join(',')})" }) do
-      return self.find(:all, options)
-    end
-  end
-
-  def self.find_for_relations(ids, options = {})
-    self.with_scope(:find => { :joins => "INNER JOIN current_relation_members ON current_relation_members.id = current_relations.id", :conditions => "current_relation_members.member_type = 'relation' AND current_relation_members.member_id IN (#{ids.join(',')})" }) do
-      return self.find(:all, options)
-    end
-  end
-
   # FIXME is this really needed?
   def members
     unless @members