X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b7b2b502cf2b119208e3c1f79e4a4e38cc0edcc5..e989b1a880f79fd1835a44d16de115a778f890af:/app/models/user.rb diff --git a/app/models/user.rb b/app/models/user.rb index ecf41fd18..0eddb259d 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -106,4 +106,8 @@ class User < ActiveRecord::Base return false end + def trace_public_default + return self.preferences.find(:first, :conditions => {:k => "gps.trace.public", :v => "default"}) + end + end