Remove unused (and non-functioning) code

This commit is contained in:
Tom Hughes 2014-02-26 18:53:25 +00:00
parent e50229c0bc
commit 28b8863627
4 changed files with 3 additions and 8 deletions

View file

@ -21,7 +21,7 @@ class Node < ActiveRecord::Base
has_many :ways_via_history, :class_name=> "Way", :through => :old_way_nodes, :source => :way
has_many :containing_relation_members, :class_name => "RelationMember", :as => :member
has_many :containing_relations, :class_name => "Relation", :through => :containing_relation_members, :source => :relation, :extend => ObjectFinder
has_many :containing_relations, :class_name => "Relation", :through => :containing_relation_members, :source => :relation
validates_presence_of :id, :on => :update
validates_presence_of :timestamp,:version, :changeset_id

View file

@ -15,7 +15,7 @@ class Relation < ActiveRecord::Base
has_many :relation_tags
has_many :containing_relation_members, :class_name => "RelationMember", :as => :member
has_many :containing_relations, :class_name => "Relation", :through => :containing_relation_members, :source => :relation, :extend => ObjectFinder
has_many :containing_relations, :class_name => "Relation", :through => :containing_relation_members, :source => :relation
validates_presence_of :id, :on => :update
validates_presence_of :timestamp,:version, :changeset_id

View file

@ -17,7 +17,7 @@ class Way < ActiveRecord::Base
has_many :way_tags
has_many :containing_relation_members, :class_name => "RelationMember", :as => :member
has_many :containing_relations, :class_name => "Relation", :through => :containing_relation_members, :source => :relation, :extend => ObjectFinder
has_many :containing_relations, :class_name => "Relation", :through => :containing_relation_members, :source => :relation
validates_presence_of :id, :on => :update
validates_presence_of :changeset_id,:version, :timestamp

View file

@ -1,5 +0,0 @@
module ObjectFinder
def visible
find :all, :conditions => "#{proxy_reflection.table_name}.visible = 1"
end
end