X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/dd7ef37ec023646120358a0a6a7959a392b79f1c..f8ace8f9e063861d66558f43b936c92ae85a0e96:/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