X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/a543e731c0433b2aa0f0f1583f7c70182a084fd5..226c41be692452129227f30d67f2d847e510015c:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index cc9343e7c..8206eecb3 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -25,6 +25,9 @@ class Way < ActiveRecord::Base validates_numericality_of :id, :on => :update, :integer_only => true validates_associated :changeset + scope :visible, where(:visible => true) + scope :invisible, where(:visible => false) + # Read in xml as text and return it's Way object representation def self.from_xml(xml, create=false) begin