User prference system basically done
This commit is contained in:
parent
331cf6b068
commit
2e44f9ccf3
3 changed files with 78 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue