User prference system basically done

This commit is contained in:
Steve Coast 2008-02-23 13:37:36 +00:00
parent 331cf6b068
commit 2e44f9ccf3
3 changed files with 78 additions and 0 deletions

View file

@ -1,3 +1,13 @@
class UserPreference < ActiveRecord::Base
belongs_to :user
# 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
return el1
end
end