]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/changeset.rb
Removed debugging code.
[rails.git] / app / models / changeset.rb
index caa167c9eb19e52b32e277269820b056f918e962..446ca351de81cd4d574722630cc4785284ffd30f 100644 (file)
@@ -12,7 +12,7 @@ class Changeset < ActiveRecord::Base
   has_many :old_ways
   has_many :old_relations
   
-  validates_presence_of :user_id, :created_at, :open
+  validates_presence_of :user_id, :created_at
   validates_inclusion_of :open, :in => [ true, false ]
   
   # Use a method like this, so that we can easily change how we
@@ -40,13 +40,16 @@ class Changeset < ActiveRecord::Base
         end
       end
     rescue Exception => ex
-    print "noes "+ ex.to_s + "\n"
       cs = nil
     end
 
     return cs
   end
 
+  def tags_as_hash
+    return tags
+  end
+
   def tags
     unless @tags
       @tags = {}