]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_preference.rb
Fix most auto-correctable rubocop issues
[rails.git] / app / models / user_preference.rb
index 7faec977e6724bd7868e9bce03f22ad90ed5809e..969a368e371f60b93a6fd4c65c0b366a51ef0723 100644 (file)
@@ -9,10 +9,9 @@ class UserPreference < ActiveRecord::Base
   # Turn this Node in to an XML Node without the <osm> wrapper.
   def to_xml_node
     el1 = XML::Node.new 'preference'
-    el1['k'] = self.k
-    el1['v'] = self.v
+    el1['k'] = k
+    el1['v'] = v
 
-    return el1
+    el1
   end
-
 end