]> git.openstreetmap.org Git - rails.git/blob - app/models/user_preference.rb
Make capabilities report the current version for from/to version
[rails.git] / app / models / user_preference.rb
1 class UserPreference < ActiveRecord::Base
2   set_primary_keys :user_id, :k
3   belongs_to :user
4
5   # Turn this Node in to an XML Node without the <osm> wrapper.
6   def to_xml_node
7     el1 = XML::Node.new 'preference'
8     el1['k'] = self.k
9     el1['v'] = self.v
10     
11     return el1
12   end
13
14 end