projects
/
rails.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
reverting the javascript change in changeset 10926, that needs to be specific to...
[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